File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
cocos/scripting/lua-bindings/proj.android Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ add_library(${target_name} STATIC
14
14
${${target_name} _src}
15
15
)
16
16
17
- get_target_property (lua_header ext_lua INTERFACE_INCLUDE_DIRECTORIES )
17
+ get_target_property (lua_header ext_luajit INTERFACE_INCLUDE_DIRECTORIES )
18
18
get_target_property (tolua_header ext_tolua INTERFACE_INCLUDE_DIRECTORIES )
19
19
target_include_directories (${target_name}
20
20
PRIVATE ../../..
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ else()
119
119
add_library (${APP_NAME} SHARED ${APP_SRC} )
120
120
add_subdirectory (${COCOS2DX_ROOT_PATH} /cocos/platform/android ${ENGINE_BINARY_PATH} /cocos/platform)
121
121
target_link_libraries (${APP_NAME} -Wl,--whole-archive cpp_android_spec -Wl,--no -whole-archive)
122
+ add_subdirectory (${COCOS2DX_ROOT_PATH} /cocos/scripting/js-bindings/proj.android ${ENGINE_BINARY_PATH} /cocos/js-android)
123
+ target_link_libraries (${APP_NAME} -Wl,--whole-archive js_android_spec -Wl,--no -whole-archive)
122
124
endif ()
123
125
124
126
target_link_libraries (${APP_NAME} jscocos2d)
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ else()
137
137
add_library (${APP_NAME} SHARED ${APP_SRC} )
138
138
add_subdirectory (${COCOS2DX_ROOT_PATH} /cocos/platform/android ${ENGINE_BINARY_PATH} /cocos/platform)
139
139
target_link_libraries (${APP_NAME} -Wl,--whole-archive cpp_android_spec -Wl,--no -whole-archive)
140
+ add_subdirectory (${COCOS2DX_ROOT_PATH} /cocos/scripting/lua-bindings/proj.android ${ENGINE_BINARY_PATH} /cocos/lua-android)
141
+ target_link_libraries (${APP_NAME} -Wl,--whole-archive lua_android_spec -Wl,--no -whole-archive)
140
142
endif ()
141
143
142
144
target_link_libraries (${APP_NAME} luacocos2d)
You can’t perform that action at this time.
0 commit comments