File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ target_link_libraries(external
46
46
ext_md5
47
47
)
48
48
49
+
50
+
49
51
# use lua/js specific libs by property to prevent conflict
50
52
if (BUILD_JS_LIBS )
51
53
add_subdirectory (spidermonkey )
@@ -134,3 +136,12 @@ set_target_properties(external
134
136
FOLDER "External"
135
137
)
136
138
139
+
140
+ if (MACOSX OR IOS )
141
+ add_subdirectory (glsl-optimizer )
142
+ target_link_libraries (external
143
+ ext_glcpp_library
144
+ ext_glsl_optimizer
145
+ ext_libmesa
146
+ )
147
+ endif ()
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.6 )
2
+
3
+ set (lib_name glsl_optimizer )
4
+ set (target_name ext_${lib_name} )
5
+
6
+ project (${lib_name} )
7
+
8
+ include (../cmake/CocosExternalConfig.cmake )
9
+
10
+ add_library (ext_glcpp_library STATIC IMPORTED GLOBAL )
11
+ add_library (ext_glsl_optimizer STATIC IMPORTED GLOBAL )
12
+ add_library (ext_libmesa STATIC IMPORTED GLOBAL )
13
+
14
+
15
+ set_target_properties (${target_name} PROPERTIES
16
+ INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR} /include"
17
+ )
18
+
19
+ set_target_properties (ext_glcpp_library PROPERTIES
20
+ IMPORTED_LOCATION "${platform_spec_path} /libglcpp-library.a"
21
+ )
22
+ set_target_properties (ext_glsl_optimizer PROPERTIES
23
+ IMPORTED_LOCATION "${platform_spec_path} /libglsl_optimizer.a"
24
+ )
25
+ set_target_properties (ext_libmesa PROPERTIES
26
+ IMPORTED_LOCATION "${platform_spec_path} /libmesa.a"
27
+ )
You can’t perform that action at this time.
0 commit comments