Skip to content

Commit d528ac2

Browse files
author
litongjava
committed
init commit
0 parents  commit d528ac2

19 files changed

+9186
-0
lines changed

.gitignore

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
### Eclipse template
2+
*.pydevproject
3+
.metadata
4+
.gradle*
5+
classes/
6+
bin/
7+
tmp/
8+
*.tmp
9+
*.bak
10+
*.swp
11+
*~.nib
12+
local.properties
13+
.settings/
14+
.loadpath
15+
rebel.xml
16+
17+
# Eclipse Core
18+
.project
19+
20+
generatedsources
21+
22+
# External tool builders
23+
.externalToolBuilders/
24+
25+
# Locally stored "Eclipse launch configurations"
26+
*.launch
27+
28+
# CDT-specific
29+
.cproject
30+
31+
# JDT-specific (Eclipse Java Development Tools)
32+
.classpath
33+
34+
# PDT-specific
35+
.buildpath
36+
37+
# sbteclipse plugin
38+
.target
39+
40+
# TeXlipse plugin
41+
.texlipse
42+
43+
44+
45+
### JetBrains template
46+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
47+
48+
*.iml
49+
.flattened-pom.xml
50+
## Directory-based project format:
51+
.idea/
52+
# if you remove the above rule, at least ignore the following:
53+
54+
# User-specific stuff:
55+
# .idea/workspace.xml
56+
# .idea/tasks.xml
57+
# .idea/dictionaries
58+
59+
# Sensitive or high-churn files:
60+
# .idea/dataSources.ids
61+
# .idea/dataSources.xml
62+
# .idea/sqlDataSources.xml
63+
# .idea/dynamic.xml
64+
# .idea/uiDesigner.xml
65+
66+
# Gradle:
67+
# .idea/gradle.xml
68+
# .idea/libraries
69+
70+
# Mongo Explorer plugin:
71+
# .idea/mongoSettings.xml
72+
73+
## File-based project format:
74+
*.ipr
75+
*.iws
76+
77+
## Plugin-specific files:
78+
79+
# IntelliJ
80+
/out/
81+
82+
# mpeltonen/sbt-idea plugin
83+
.idea_modules/
84+
85+
# JIRA plugin
86+
atlassian-ide-plugin.xml
87+
88+
# Crashlytics plugin (for Android Studio and IntelliJ)
89+
com_crashlytics_export_strings.xml
90+
crashlytics.properties
91+
crashlytics-build.properties
92+
93+
build/
94+
95+
# Ignore Gradle GUI config
96+
gradle-app.setting
97+
98+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
99+
!gradle-wrapper.jar
100+
101+
db
102+
103+
### Java template
104+
*.class
105+
106+
# Mobile Tools for Java (J2ME)
107+
.mtj.tmp/
108+
109+
# Package Files #
110+
#*.jar
111+
112+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
113+
hs_err_pid*
114+
115+
116+
### Leiningen template
117+
classes/
118+
target/
119+
logs/
120+
checkouts/
121+
.lein-deps-sum
122+
.lein-repl-history
123+
.lein-plugins/
124+
.lein-failures
125+
.nrepl-port
126+
127+
querydsl/
128+
129+
.DS_Store
130+
131+
*.exe
132+
*.out
133+
134+
*.log
135+
node_modules/
136+
dist/
137+
dist.zip
138+
package-lock.json
139+
*.lock
140+
local.properties
141+
.cxx
142+
.externalNativeBuild
143+
/captures
144+
/build
145+
__pycache__/
146+
*.pyc
147+
148+
149+
cmake-build-debug/
150+
cmake-build-debug-mingw/
151+
venv/
152+
.vs/
153+
Debug/
154+
*.bin

CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cmake_minimum_required(VERSION 3.23)
2+
project(whisper_cpp_server)
3+
4+
set(CMAKE_CXX_STANDARD 14)
5+
# find SDL2 library
6+
find_package(SDL2 REQUIRED)
7+
include_directories(${SDL2_INCLUDE_DIRS})
8+
9+
10+
# 检测操作系统
11+
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
12+
# macOS
13+
include_directories(/Users/ping/code/cpp/project-litongjava/whisper.cpp)
14+
link_directories(/Users/ping/code/cpp/project-litongjava/whisper.cpp/cmake-build-release)
15+
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
16+
# Linux
17+
include_directories(/mnt/e/code/cpp/project-ping/whisper.cpp)
18+
link_directories(/mnt/e/code/cpp/project-ping/whisper.cpp/cmake-build-release)
19+
endif ()
20+
21+
add_executable(web_socket_server main.cpp web_socket_server.cpp)
22+
# 链接 whisper.cpp 库
23+
target_link_libraries(web_socket_server whisper ${SDL2_LIBRARIES})
24+
25+
26+

0 commit comments

Comments
 (0)