Skip to content

Commit e3ad9b6

Browse files
Merge branch 'v3' into pba-cocos2dx-3.17.1
* v3: (83 commits) setPercent after initialization (cocos2d#19718) Update CHANGELOG [js-tests/cpp-tests] iOS: add fonts to Info.plist (cocos2d#19708) update release note and change log (cocos2d#19711) fix get environment (cocos2d#19690) rename Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.* to Cocos2dxLuaJavaBridge.* (cocos2d#19694) fix twice copy lua scripts error (cocos2d#19687) (cocos2d#19691) protect empty string (cocos2d#19680) modify engine version (cocos2d#19677) fix Sprite update_blend_func (cocos2d#19649) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19648) add clang-tidy support (cocos2d#19643) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#19644) add optimization for OPPO. (cocos2d#19631) Optimize cases where loop variable is unecessarily copied in a range-for loop. (cocos2d#19637) Changed shader data types mediump to highp to remove possible sprite joggling on some Android phones. (cocos2d#19633) remove redundant user-defined copy constructor and destructor, (cocos2d#19636) move parseIntegerList to a free function in ccUtils, add few testcases (cocos2d#19634) update binding generator (cocos2d#19625) rewrite parseIntegerList with better performance (cocos2d#19619) ...
2 parents e662268 + 1528ea0 commit e3ad9b6

File tree

412 files changed

+3790
-23300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+3790
-23300
lines changed

.clang-tidy

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
Checks: >
3+
-*,
4+
performance-faster-string-find,
5+
performance-for-range-copy,
6+
7+
WarningsAsErrors: '*'
8+
HeaderFilterRegex: '/(?!external)/.*'
9+
AnalyzeTemporaryDtors: false
10+
FormatStyle: none

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,7 @@ tests/*/project/proj.android/.settings/org.eclipse.buildship.core.prefs
179179
# tmp folder for temp usage
180180
tmp/
181181
temp/
182+
183+
# external libs zip
184+
*.zip
185+
**/simulator/

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ matrix:
22
include:
33
# linux
44
- os: linux
5+
dist: xenial
56
env:
67
- BUILD_TARGET=linux
78
- GEN_BINDING_AND_COCOSFILE=true
@@ -10,6 +11,12 @@ matrix:
1011
- secure: M5lyDs0qai15mWHzJdkh0WPfVJJmVZu6SWtYULxatukGPXVwoQvmEtYAwAW+iz6aM+tXksQ/mk6nW5L8UFbHm+n6yrsa5bZU9sGXjilPE8p8bLFYDmIbPRazU+E6pBP3J2CDoAm0XnWkiYQ8feTxKTo6ysLnHAEjyaHTw0+Q1GM=
1112
sudo: required
1213
language: cpp
14+
# clang-tidy
15+
- os: linux
16+
dist: xenial
17+
env: BUILD_TARGET=linux_clang_tidy
18+
language: cpp
19+
sudo: required
1320
# mac_cmake
1421
- os: osx
1522
env: BUILD_TARGET=mac_cmake
@@ -24,7 +31,7 @@ matrix:
2431
sudo: required
2532
# android ndk-build
2633
- os: linux
27-
env: BUILD_TARGET=android_ndk-build
34+
env: BUILD_TARGET=android_cpp_ndk-build
2835
language: android
2936
sudo: required
3037
# android_lua ndk-build
@@ -34,7 +41,7 @@ matrix:
3441
sudo: required
3542
# android cmake
3643
- os: linux
37-
env: BUILD_TARGET=android_cmake
44+
env: BUILD_TARGET=android_cpp_cmake
3845
language: android
3946
sudo: required
4047
# android_lua cmake
@@ -60,11 +67,12 @@ matrix:
6067
osx_image: xcode9.3
6168
sudo: required
6269
- os: linux
63-
env: BUILD_TARGET=android_cocos_new_test
64-
language: cpp
70+
env: BUILD_TARGET=android_cocos_new_cpp_test
71+
language: android
6572
sudo: required
6673
- os: linux
67-
env: BUILD_TARGET=linux_cocos_new_test
74+
dist: xenial
75+
env: BUILD_TARGET=linux_cocos_new_lua_test
6876
language: cpp
6977
sudo: required
7078

CHANGELOG

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
cocos2d-x-3.17.2 May.21 2019
2+
3+
[NEW] Network: added clear requests and responses method to httpclient
4+
[NEW] UI: VideoPlayer added ability to enable/disable looping, resonding user input
5+
[NEW] UI: VideoPlayer added function to set style
6+
[NEW] IMEDispacher: added a function to check if any IME dispatcher is active
7+
[NEW] Renderer: add a function to get current clearing color
8+
[NEW] Lua: added binding codes for `EventDispathcer::addCustomEventListener()`
9+
10+
[REFINE] Android: added optimization codes for OPPO devcies
11+
[REFINE] Network: improved websocket traces
12+
[REFINE] Android: supported Android P cutout area
13+
[REFINE] FontAtlas: font atlas texture initialization delayed
14+
[REFINE] LOG: CCLOG may block thread on windows
15+
16+
[FIX] FileUtils:fixed a bug that `listFiles()` can not work correctly if the file path starts with `assets/` on Android
17+
[FIX] AssetsManager: fixed a bug that `_percent` is always be 0 during the update process
18+
[FIX] Texture2D: fixed memory leak if `Texture2D::setAlphaTexture()` is invoked many times
19+
[FIX] FontAtlasCache: avoided crash if a file path is too long
20+
[FIX] Audio: fixed crash on iOS
21+
[FIX] UI: VideoPlayer could not play video in obb file on Android
22+
[FIX] SpriteFrame: fixed performance issue in parsing plist files
23+
[FIX] 3rd: unzip failed to uncompress files
24+
125
cocos2d-x-3.17.1 Nov.19 2018
226

327
[REFINE] Renderer: properly reduce clear buffer times to save energy
@@ -69,7 +93,7 @@ cocos2d-x-3.17.1 Nov.19 2018
6993
[FIX] Android: keep cocos2dx activity at task root by mark "singleTask" in manifest
7094
[FIX] Android: fix crash caused by JNIEnv null pointer in getStringUTFCharsJNI function
7195
[FIX] Android: use 'Binary names' style on JNI for ClassLoader.loadClass
72-
[FIX] Android: allow cleartext HTTP traffic by default
96+
[FIX] Android: allow cleartext HTTP traffic by default for all tests project
7397
[FIX] Windows: Support VS2017 in release mode
7498
[FIX] Action: fix repeat CallFunc for some times, may never stop
7599
[FIX] Physics: fix PhysicsJointMotor setRate and getRate Bad Access Crash

CMakeLists.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ AssureOutOfSourceBuilds()
4141
# works before build libcocos2d
4242
include(CocosBuildSet)
4343

44+
# build options
45+
option(BUILD_TESTS "Build tests" ON)
46+
4447
# default tests include lua, js test project, so we set those option on to build libs
4548
set(BUILD_LUA_LIBS ON)
4649
set(BUILD_JS_LIBS ON)
@@ -50,8 +53,10 @@ add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos ${ENGINE_BINARY_PATH}/cocos/core)
5053
# prevent tests project to build "cocos2d-x/cocos" again
5154
set(BUILD_ENGINE_DONE ON)
5255
# add engine all tests project
53-
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/cpp-empty-test ${ENGINE_BINARY_PATH}/tests/cpp-empty-test)
54-
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/cpp-tests ${ENGINE_BINARY_PATH}/tests/cpp-tests)
55-
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/js-tests/project ${ENGINE_BINARY_PATH}/tests/js-tests)
56-
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/lua-empty-test/project ${ENGINE_BINARY_PATH}/tests/lua-empty-test)
57-
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/lua-tests/project ${ENGINE_BINARY_PATH}/tests/lua-test)
56+
if (BUILD_TESTS)
57+
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/cpp-empty-test ${ENGINE_BINARY_PATH}/tests/cpp-empty-test)
58+
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/cpp-tests ${ENGINE_BINARY_PATH}/tests/cpp-tests)
59+
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/js-tests/project ${ENGINE_BINARY_PATH}/tests/js-tests)
60+
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/lua-empty-test/project ${ENGINE_BINARY_PATH}/tests/lua-empty-test)
61+
add_subdirectory(${COCOS2DX_ROOT_PATH}/tests/lua-tests/project ${ENGINE_BINARY_PATH}/tests/lua-test)
62+
endif()

build/cocos2d_libs.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13718,7 +13718,7 @@
1371813718
1551A34D158F2AB200E66CFE /* Debug */ = {
1371913719
isa = XCBuildConfiguration;
1372013720
buildSettings = {
13721-
ALWAYS_SEARCH_USER_PATHS = YES;
13721+
ALWAYS_SEARCH_USER_PATHS = NO;
1372213722
CLANG_ENABLE_OBJC_WEAK = YES;
1372313723
COMBINE_HIDPI_IMAGES = YES;
1372413724
EXECUTABLE_EXTENSION = a;
@@ -13759,7 +13759,7 @@
1375913759
1551A34E158F2AB200E66CFE /* Release */ = {
1376013760
isa = XCBuildConfiguration;
1376113761
buildSettings = {
13762-
ALWAYS_SEARCH_USER_PATHS = YES;
13762+
ALWAYS_SEARCH_USER_PATHS = NO;
1376313763
CLANG_ENABLE_OBJC_WEAK = YES;
1376413764
COMBINE_HIDPI_IMAGES = YES;
1376513765
EXECUTABLE_EXTENSION = a;
@@ -13872,7 +13872,7 @@
1387213872
A07A4D621783777C0073F6A7 /* Debug */ = {
1387313873
isa = XCBuildConfiguration;
1387413874
buildSettings = {
13875-
ALWAYS_SEARCH_USER_PATHS = YES;
13875+
ALWAYS_SEARCH_USER_PATHS = NO;
1387613876
CLANG_ENABLE_OBJC_WEAK = YES;
1387713877
ENABLE_BITCODE = NO;
1387813878
EXECUTABLE_PREFIX = "";
@@ -13909,7 +13909,7 @@
1390913909
A07A4D631783777C0073F6A7 /* Release */ = {
1391013910
isa = XCBuildConfiguration;
1391113911
buildSettings = {
13912-
ALWAYS_SEARCH_USER_PATHS = YES;
13912+
ALWAYS_SEARCH_USER_PATHS = NO;
1391313913
CLANG_ENABLE_OBJC_WEAK = YES;
1391413914
ENABLE_BITCODE = NO;
1391513915
EXECUTABLE_PREFIX = "";

build/cocos2d_tests.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7520,6 +7520,7 @@
75207520
1A0EE41118CDF775004CD58F /* Debug */ = {
75217521
isa = XCBuildConfiguration;
75227522
buildSettings = {
7523+
ALWAYS_SEARCH_USER_PATHS = NO;
75237524
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-cpp-empty-test";
75247525
CODE_SIGN_IDENTITY = "iPhone Developer";
75257526
ENABLE_BITCODE = NO;
@@ -7540,6 +7541,7 @@
75407541
1A0EE41218CDF775004CD58F /* Release */ = {
75417542
isa = XCBuildConfiguration;
75427543
buildSettings = {
7544+
ALWAYS_SEARCH_USER_PATHS = NO;
75437545
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-cpp-empty-test";
75447546
CODE_SIGN_IDENTITY = "iPhone Developer";
75457547
ENABLE_BITCODE = NO;
@@ -8250,7 +8252,7 @@
82508252
C01FCF4F08A954540054247B /* Debug */ = {
82518253
isa = XCBuildConfiguration;
82528254
buildSettings = {
8253-
ALWAYS_SEARCH_USER_PATHS = YES;
8255+
ALWAYS_SEARCH_USER_PATHS = NO;
82548256
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
82558257
CLANG_CXX_LIBRARY = "libc++";
82568258
COMBINE_HIDPI_IMAGES = YES;
@@ -8281,7 +8283,7 @@
82818283
C01FCF5008A954540054247B /* Release */ = {
82828284
isa = XCBuildConfiguration;
82838285
buildSettings = {
8284-
ALWAYS_SEARCH_USER_PATHS = YES;
8286+
ALWAYS_SEARCH_USER_PATHS = NO;
82858287
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
82868288
CLANG_CXX_LIBRARY = "libc++";
82878289
COMBINE_HIDPI_IMAGES = YES;

build/install-deps-linux.sh

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22

3-
# Change directory to the location of this script
43
echo "This Shell Script will install dependencies for cocos2d-x"
5-
echo "if you execute this shell more than once it will get errors when building libGLFW.so"
64
echo -n "Are you continue? (y/n) "
75
read answer
86
if echo "$answer" | grep -iq "^y" ;then
@@ -11,24 +9,13 @@ else
119
exit
1210
fi
1311

14-
cd $(dirname ${BASH_SOURCE[0]})
15-
16-
if [ ! $(command -v apt-get) ]; then
17-
echo "Not a .deb package system. Please install dependencies manually"
18-
exit 0
19-
fi
20-
21-
#install g++-4.9
22-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y > /dev/null
2312
sudo apt-get update
2413

2514
DEPENDS='libx11-dev'
2615
DEPENDS+=' libxmu-dev'
2716
DEPENDS+=' libglu1-mesa-dev'
2817
DEPENDS+=' libgl2ps-dev'
2918
DEPENDS+=' libxi-dev'
30-
DEPENDS+=' gcc-4.9'
31-
DEPENDS+=' g++-4.9'
3219
DEPENDS+=' libzip-dev'
3320
DEPENDS+=' libpng12-dev'
3421
DEPENDS+=' libcurl4-gnutls-dev'
@@ -39,38 +26,4 @@ DEPENDS+=' libssl-dev'
3926
DEPENDS+=' libgtk-3-dev'
4027
DEPENDS+=' binutils'
4128

42-
MISSING=
43-
echo "Checking for missing packages ..."
44-
for i in $DEPENDS; do
45-
if ! dpkg-query -W --showformat='${Status}\n' $i | grep "install ok installed" > /dev/null; then
46-
MISSING+="$i "
47-
fi
48-
done
49-
50-
if [ -n "$MISSING" ]; then
51-
TXTCOLOR_DEFAULT="\033[0;m"
52-
TXTCOLOR_GREEN="\033[0;32m"
53-
echo -e $TXTCOLOR_GREEN"Missing packages: $MISSING.\nYou may be asked for your password for package installation."$TXTCOLOR_DEFAULT
54-
CUR_APT_VERSION="$(apt --version | grep -o '[0-9].[0-9]')"
55-
REQ_APT_VERSION="1.1"
56-
if [ 1 -ge "$(echo "${CUR_APT_VERSION} >= ${REQ_APT_VERSION}" | bc)" ]
57-
then
58-
sudo apt-get install --allow-change-held-packages $MISSING -y > /dev/null
59-
else
60-
sudo apt-get install --force-yes --yes $MISSING > /dev/null
61-
fi
62-
fi
63-
64-
65-
66-
sudo update-alternatives --remove-all gcc
67-
sudo update-alternatives --remove-all g++
68-
69-
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60
70-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 60
71-
72-
echo "Cocos uses GCC Version: `gcc --version`"
73-
echo "Cocos uses G++ Version: `g++ --version`"
74-
echo "Cocos uses ld Version: `ld --version`"
75-
echo "Cocos uses /usr/bin/ld Version: `/usr/bin/ld --version`"
76-
29+
sudo apt-get install --force-yes --yes $DEPENDS > /dev/null

cmake/Modules/CocosBuildHelpers.cmake

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
include(CMakeParseArguments)
22

3-
# copy resource `FILES` and `FOLDERS` to `COPY_TO` folder
4-
function(cocos_copy_res)
3+
# copy resource `FILES` and `FOLDERS` to TARGET_FILE_DIR/Resources
4+
function(cocos_copy_target_res cocos_target)
55
set(oneValueArgs COPY_TO)
66
set(multiValueArgs FILES FOLDERS)
77
cmake_parse_arguments(opt "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
88
# copy files
99
foreach(cc_file ${opt_FILES})
1010
get_filename_component(file_name ${cc_file} NAME)
11-
configure_file(${cc_file} "${opt_COPY_TO}/${file_name}" COPYONLY)
11+
add_custom_command(TARGET ${cocos_target} POST_BUILD
12+
COMMAND ${CMAKE_COMMAND} -E echo "copy file into Resources: ${file_name} ..."
13+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${cc_file} "${opt_COPY_TO}/${file_name}"
14+
)
1215
endforeach()
1316
# copy folders files
1417
foreach(cc_folder ${opt_FOLDERS})
@@ -17,7 +20,10 @@ function(cocos_copy_res)
1720
foreach(res_file ${folder_files})
1821
get_filename_component(res_file_abs_path ${res_file} ABSOLUTE)
1922
file(RELATIVE_PATH res_file_relat_path ${folder_abs_path} ${res_file_abs_path})
20-
configure_file(${res_file} "${opt_COPY_TO}/${res_file_relat_path}" COPYONLY)
23+
add_custom_command(TARGET ${cocos_target} POST_BUILD
24+
COMMAND ${CMAKE_COMMAND} -E echo "copy file into Resources: ${res_file_relat_path} ..."
25+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${res_file} "${opt_COPY_TO}/${res_file_relat_path}"
26+
)
2127
endforeach()
2228
endforeach()
2329
endfunction()
@@ -79,8 +85,9 @@ function(get_target_depends_ext_dlls cocos_target all_depend_dlls_out)
7985
search_depend_libs_recursive(${cocos_target} depend_libs)
8086
foreach(depend_lib ${depend_libs})
8187
if(TARGET ${depend_lib})
82-
get_target_property(tmp_dlls ${depend_lib} CC_DEPEND_DLLS)
83-
if(tmp_dlls)
88+
get_target_property(found_shared_lib ${depend_lib} IMPORTED_IMPLIB)
89+
if(found_shared_lib)
90+
get_target_property(tmp_dlls ${depend_lib} IMPORTED_LOCATION)
8491
list(APPEND all_depend_ext_dlls ${tmp_dlls})
8592
endif()
8693
endif()
@@ -89,20 +96,19 @@ function(get_target_depends_ext_dlls cocos_target all_depend_dlls_out)
8996
set(${all_depend_dlls_out} ${all_depend_ext_dlls} PARENT_SCOPE)
9097
endfunction()
9198

92-
# copy the `cocos_target` needed dlls into `COPY_TO` folder
99+
# copy the `cocos_target` needed dlls into TARGET_FILE_DIR
93100
function(cocos_copy_target_dll cocos_target)
94-
set(oneValueArgs COPY_TO)
95-
cmake_parse_arguments(opt "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
96101
get_target_depends_ext_dlls(${cocos_target} all_depend_dlls)
97102
# remove repeat items
98103
if(all_depend_dlls)
99104
list(REMOVE_DUPLICATES all_depend_dlls)
100105
endif()
101-
# todo, add a option to enable/disable debug print
102-
message(STATUS "prepare to copy external dlls for ${cocos_target}:${all_depend_dlls}")
103106
foreach(cc_dll_file ${all_depend_dlls})
104107
get_filename_component(cc_dll_name ${cc_dll_file} NAME)
105-
configure_file(${cc_dll_file} "${opt_COPY_TO}/${cc_dll_name}" COPYONLY)
108+
add_custom_command(TARGET ${cocos_target} POST_BUILD
109+
COMMAND ${CMAKE_COMMAND} -E echo "copy dll into target file dir: ${cc_dll_name} ..."
110+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${cc_dll_file} "$<TARGET_FILE_DIR:${cocos_target}>/${cc_dll_name}"
111+
)
106112
endforeach()
107113
endfunction()
108114

@@ -168,31 +174,21 @@ function(source_group_single_file single_file)
168174
source_group("${ide_file_group}" FILES ${single_file})
169175
endfunction()
170176

171-
# setup a cocos application, include "APP_BIN_DIR", "APP_RES_DIR" config
177+
# setup a cocos application
172178
function(setup_cocos_app_config app_name)
173-
# set target PROPERTIES, depend different platforms
179+
# put all output app into bin/${app_name}
180+
set_target_properties(${app_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/${app_name}")
174181
if(APPLE)
175-
set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin")
176-
set_target_properties(${app_name} PROPERTIES MACOSX_BUNDLE 1
177-
)
182+
# output macOS/iOS .app
183+
set_target_properties(${app_name} PROPERTIES MACOSX_BUNDLE 1)
178184
elseif(MSVC)
179-
# only Debug and Release mode was supported when using MSVC.
180-
set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${APP_NAME}/$<CONFIG>")
181-
set(APP_RES_DIR "${CMAKE_BINARY_DIR}/bin/${APP_NAME}/${CMAKE_BUILD_TYPE}/Resources")
182-
#Visual Studio Defaults to wrong type
183-
set_target_properties(${app_name} PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")
184-
else(LINUX)
185-
set(APP_BIN_DIR "${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/${APP_NAME}")
186-
set(APP_RES_DIR "${APP_BIN_DIR}/Resources")
185+
# visual studio default is Console app, but we need Windows app
186+
set_property(TARGET ${app_name} APPEND PROPERTY LINK_FLAGS "/SUBSYSTEM:WINDOWS")
187187
endif()
188-
set_target_properties(${app_name} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${APP_BIN_DIR}")
189-
190188
# auto mark code files for IDE when mark app
191189
if(XCODE OR VS)
192-
cocos_mark_code_files(${APP_NAME})
190+
cocos_mark_code_files(${app_name})
193191
endif()
194-
195-
set(APP_RES_DIR ${APP_RES_DIR} PARENT_SCOPE)
196192
endfunction()
197193

198194
# if cc_variable not set, then set it cc_value

0 commit comments

Comments
 (0)