Skip to content

Commit 69c18f6

Browse files
committed
fix misspelling
1 parent e55593f commit 69c18f6

File tree

7 files changed

+56
-53
lines changed

7 files changed

+56
-53
lines changed

SConstruct

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import compile_config
88
import awtk_config as awtk
99

1010
awtk.scons_db_check_and_remove()
11-
complie_helper = compile_config.get_curr_config()
11+
compile_helper = compile_config.get_curr_config()
1212

1313
APP_CCFLAGS = ' '
1414

1515
AWTK_LIB_PATH = awtk.joinPath(awtk.BIN_DIR, "libawtk.so");
1616
if os.path.exists(AWTK_LIB_PATH) :
1717
os.remove(AWTK_LIB_PATH)
1818

19-
APP_ROOT = complie_helper.get_value('APP', '')
19+
APP_ROOT = compile_helper.get_value('APP', '')
2020
if len (APP_ROOT) > 0:
2121
app_sconstruct = awtk.joinPath(APP_ROOT, 'SConstruct')
2222
if not os.path.exists(APP_ROOT) or not os.path.exists(app_sconstruct):
@@ -43,7 +43,7 @@ env = DefaultEnvironment(CCFLAGS = awtk.CCFLAGS + APP_CCFLAGS,
4343
TK_ROOT_VAR = awtk.joinPath(awtk.VAR_DIR, 'awtk')
4444
VariantDir(TK_ROOT_VAR, awtk.TK_ROOT)
4545

46-
if APP_ROOT == '' and complie_helper.get_value('BUILD_DEMOS', True):
46+
if APP_ROOT == '' and compile_helper.get_value('BUILD_DEMOS', True):
4747
APP_PROJ_VAR = [awtk.joinPath(TK_ROOT_VAR, 'demos/SConscript')]
4848
else:
4949
APP_PROJ_VAR = []
@@ -79,8 +79,8 @@ if os.environ['LCD_DEVICES'] == 'wayland' or os.environ['LCD_DEVICES'] == 'egl_f
7979
else :
8080
SConscriptFiles += [ 'awtk-port/SConscript' ]
8181

82-
os.environ['BUILD_TOOLS'] = str(complie_helper.get_value('BUILD_TOOLS', True))
83-
if complie_helper.get_value('BUILD_TOOLS', True) :
82+
os.environ['BUILD_TOOLS'] = str(compile_helper.get_value('BUILD_TOOLS', True))
83+
if compile_helper.get_value('BUILD_TOOLS', True) :
8484
SConscriptFiles += [
8585
awtk.joinPath(TK_ROOT_VAR, 'tools/common/SConscript'),
8686
awtk.joinPath(TK_ROOT_VAR, 'tools/ui_gen/xml_to_ui/SConscript'),
@@ -115,8 +115,8 @@ def build_app():
115115
shutil.copy(awtk.joinPath(app_bin, file), linux_fb_bin)
116116

117117
def compile_end() :
118-
complie_helper.save_last_complie_argv()
119-
complie_helper.output_compile_data(awtk.TK_ROOT)
118+
compile_helper.save_last_compile_argv()
119+
compile_helper.output_compile_data(awtk.TK_ROOT)
120120
build_app()
121121

122122
atexit.register(compile_end)

awtk-port/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import copy
33
import scons_argv
4-
complie_helper = scons_argv.get_compile_config()
4+
compile_helper = scons_argv.get_compile_config()
55

66
BIN_DIR = os.environ['BIN_DIR'];
77
LIB_DIR = os.environ['LIB_DIR'];
@@ -33,7 +33,7 @@ elif LCD_DEVICES =='egl_for_gbm' :
3333

3434
awtk_linux_fb = env.Library(os.path.join(LIB_DIR, 'awtk_linux_fb'), SOURCES)
3535

36-
extern_codes = complie_helper.get_value('EXTERN_CODE', None)
36+
extern_codes = compile_helper.get_value('EXTERN_CODE', None)
3737
if extern_codes != None :
3838
all_extern_codes = []
3939
for extern_code in extern_codes :

awtk-wayland/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import copy
33
import scons_argv
4-
complie_helper = scons_argv.get_compile_config()
4+
compile_helper = scons_argv.get_compile_config()
55

66
BIN_DIR = os.environ['BIN_DIR'];
77
LIB_DIR = os.environ['LIB_DIR'];
@@ -18,7 +18,7 @@ elif LCD_DEVICES == 'egl_for_wayland' :
1818

1919
awtk_linux_fb = env.Library(os.path.join(LIB_DIR, 'awtk_linux_fb'), SOURCES)
2020

21-
extern_codes = complie_helper.get_value('EXTERN_CODE', None)
21+
extern_codes = compile_helper.get_value('EXTERN_CODE', None)
2222
if extern_codes != None :
2323
all_extern_codes = []
2424
for extern_code in extern_codes :

awtk_config.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import platform
33
import shutil
44
import scons_argv
5-
complie_helper = scons_argv.get_compile_config()
5+
compile_helper = scons_argv.get_compile_config()
66

77
from awtk_config_common import TKC_STATIC_LIBS
88
from awtk_config_common import joinPath, toWholeArchive, genIdlAndDefEx, setEnvSpawn, genDllLinkFlags, copySharedLib, cleanSharedLib, scons_db_check_and_remove
@@ -45,7 +45,7 @@ def lcd_devices_is_egl(lcd_devices):
4545
# LCD_DEVICES='egl_for_x11'
4646
# LCD_DEVICES='egl_for_gbm'
4747
# LCD_DEVICES='egl_for_wayland'
48-
LCD_DEVICES = complie_helper.get_value('LCD_DEVICES', LCD_DEVICES)
48+
LCD_DEVICES = compile_helper.get_value('LCD_DEVICES', LCD_DEVICES)
4949

5050
NANOVG_BACKEND=''
5151
VGCANVAS='NANOVG'
@@ -57,7 +57,7 @@ def lcd_devices_is_egl(lcd_devices):
5757
#os.environ['USE_SSE2'] = 'true'
5858
#os.environ['USE_SSSE3'] = 'true'
5959
#VGCANVAS='NANOVG_PLUS'
60-
VGCANVAS = complie_helper.get_value('VGCANVAS', VGCANVAS)
60+
VGCANVAS = compile_helper.get_value('VGCANVAS', VGCANVAS)
6161

6262
if LCD_DEVICES =='fb' or LCD_DEVICES =='drm' or LCD_DEVICES =='wayland':
6363
LCD='LINUX_FB'
@@ -71,7 +71,7 @@ def lcd_devices_is_egl(lcd_devices):
7171
#INPUT_ENGINE='t9'
7272
#INPUT_ENGINE='t9ext'
7373
INPUT_ENGINE='pinyin'
74-
INPUT_ENGINE = complie_helper.get_value('INPUT_ENGINE', INPUT_ENGINE)
74+
INPUT_ENGINE = compile_helper.get_value('INPUT_ENGINE', INPUT_ENGINE)
7575

7676
COMMON_CCFLAGS=' -DHAS_STD_MALLOC -DHAS_STDIO -DHAS_FAST_MEMCPY -DWITH_VGCANVAS -DWITH_UNICODE_BREAK '
7777
COMMON_CCFLAGS=COMMON_CCFLAGS+' -DLOAD_ASSET_WITH_MMAP=1 -DWITH_SOCKET=1 '
@@ -103,7 +103,7 @@ def lcd_devices_is_egl(lcd_devices):
103103
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_IME_NULL '
104104

105105
GRAPHIC_BUFFER='default'
106-
if complie_helper.get_value('WITH_CUSTOM_GRAPHIC_BUFFER', False) :
106+
if compile_helper.get_value('WITH_CUSTOM_GRAPHIC_BUFFER', False) :
107107
GRAPHIC_BUFFER='custom'
108108
#GRAPHIC_BUFFER='jzgpu'
109109
#if GRAPHIC_BUFFER == 'jzgpu':
@@ -150,37 +150,37 @@ def lcd_devices_is_egl(lcd_devices):
150150
#TOOLS_PREFIX='/opt/android-ndk-r20b/toolchains/llvm/prebuilt/linux-x86_64/bin/'
151151
#TOOLS_PREFIX='/Users/jim/android/android-ndk-r21d/toolchains/llvm/prebuilt/darwin-x86_64/bin/'
152152

153-
TOOLS_PREFIX = complie_helper.get_unique_value('TOOLS_PREFIX', TOOLS_PREFIX)
154-
TSLIB_LIB_DIR = complie_helper.get_unique_value('TSLIB_LIB_DIR', TSLIB_LIB_DIR)
155-
TSLIB_INC_DIR = complie_helper.get_unique_value('TSLIB_INC_DIR', TSLIB_INC_DIR)
156-
OS_FLAGS = complie_helper.get_value('OS_FLAGS', OS_FLAGS)
157-
OS_LINKFLAGS = complie_helper.get_value('OS_LINKFLAGS', OS_LINKFLAGS)
153+
TOOLS_PREFIX = compile_helper.get_unique_value('TOOLS_PREFIX', TOOLS_PREFIX)
154+
TSLIB_LIB_DIR = compile_helper.get_unique_value('TSLIB_LIB_DIR', TSLIB_LIB_DIR)
155+
TSLIB_INC_DIR = compile_helper.get_unique_value('TSLIB_INC_DIR', TSLIB_INC_DIR)
156+
OS_FLAGS = compile_helper.get_value('OS_FLAGS', OS_FLAGS)
157+
OS_LINKFLAGS = compile_helper.get_value('OS_LINKFLAGS', OS_LINKFLAGS)
158158

159159
TARGET_ARCH = platform.architecture();
160160

161-
if complie_helper.get_value('PLATFORM', 'linux') == 'android' :
161+
if compile_helper.get_value('PLATFORM', 'linux') == 'android' :
162162
# for android
163163
TSLIB_LIB_DIR=''
164164
TSLIB_INC_DIR=''
165-
CC = TOOLS_PREFIX + complie_helper.get_value('TOOLS_CC', 'armv7a-linux-androideabi16-clang')
166-
CXX = TOOLS_PREFIX + complie_helper.get_value('TOOLS_CXX', 'armv7a-linux-androideabi16-clang++')
167-
LD = TOOLS_PREFIX + complie_helper.get_value('TOOLS_LD', 'arm-linux-androideabi-ld')
168-
AR = TOOLS_PREFIX + complie_helper.get_value('TOOLS_AR', 'arm-linux-androideabi-ar')
169-
STRIP = TOOLS_PREFIX + complie_helper.get_value('TOOLS_STRIP', 'arm-linux-androideabi-strip')
170-
RANLIB = TOOLS_PREFIX + complie_helper.get_value('TOOLS_RANLIB', 'arm-linux-androideabi-ranlib')
165+
CC = TOOLS_PREFIX + compile_helper.get_value('TOOLS_CC', 'armv7a-linux-androideabi16-clang')
166+
CXX = TOOLS_PREFIX + compile_helper.get_value('TOOLS_CXX', 'armv7a-linux-androideabi16-clang++')
167+
LD = TOOLS_PREFIX + compile_helper.get_value('TOOLS_LD', 'arm-linux-androideabi-ld')
168+
AR = TOOLS_PREFIX + compile_helper.get_value('TOOLS_AR', 'arm-linux-androideabi-ar')
169+
STRIP = TOOLS_PREFIX + compile_helper.get_value('TOOLS_STRIP', 'arm-linux-androideabi-strip')
170+
RANLIB = TOOLS_PREFIX + compile_helper.get_value('TOOLS_RANLIB', 'arm-linux-androideabi-ranlib')
171171
OS_LINKFLAGS=' -Wl,--allow-multiple-definition '
172-
OS_LIBS = complie_helper.get_value('OS_LIBS', []) + ['stdc++', 'm']
172+
OS_LIBS = compile_helper.get_value('OS_LIBS', []) + ['stdc++', 'm']
173173
OS_FLAGS='-Wall -Os -DFB_DEVICE_FILENAME=\\\"\"/dev/graphics/fb0\\\"\" '
174174
else :
175-
CC = TOOLS_PREFIX + complie_helper.get_value('TOOLS_CC', 'gcc')
176-
CXX = TOOLS_PREFIX + complie_helper.get_value('TOOLS_CXX', 'g++')
177-
LD = TOOLS_PREFIX + complie_helper.get_value('TOOLS_LD', 'g++')
178-
AR = TOOLS_PREFIX + complie_helper.get_value('TOOLS_AR', 'ar')
179-
RANLIB = TOOLS_PREFIX + complie_helper.get_value('TOOLS_RANLIB', 'ranlib')
180-
STRIP = TOOLS_PREFIX + complie_helper.get_value('TOOLS_STRIP', 'strip')
181-
OS_LIBS = complie_helper.get_value('OS_LIBS', []) + ['stdc++', 'pthread', 'rt', 'm', 'dl']
182-
183-
OS_DEBUG = complie_helper.get_value('DEBUG', False)
175+
CC = TOOLS_PREFIX + compile_helper.get_value('TOOLS_CC', 'gcc')
176+
CXX = TOOLS_PREFIX + compile_helper.get_value('TOOLS_CXX', 'g++')
177+
LD = TOOLS_PREFIX + compile_helper.get_value('TOOLS_LD', 'g++')
178+
AR = TOOLS_PREFIX + compile_helper.get_value('TOOLS_AR', 'ar')
179+
RANLIB = TOOLS_PREFIX + compile_helper.get_value('TOOLS_RANLIB', 'ranlib')
180+
STRIP = TOOLS_PREFIX + compile_helper.get_value('TOOLS_STRIP', 'strip')
181+
OS_LIBS = compile_helper.get_value('OS_LIBS', []) + ['stdc++', 'pthread', 'rt', 'm', 'dl']
182+
183+
OS_DEBUG = compile_helper.get_value('DEBUG', False)
184184
if OS_DEBUG :
185185
OS_FLAGS += ' -g -O0 '
186186
else :
@@ -213,10 +213,10 @@ def lcd_devices_is_egl(lcd_devices):
213213
COMMON_CCFLAGS = COMMON_CCFLAGS+' -DWITH_EVENT_RECORDER_PLAYER=1 '
214214
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_WIDGET_TYPE_CHECK=1 '
215215

216-
if complie_helper.get_value('ENABLE_CURSOR', True) :
216+
if compile_helper.get_value('ENABLE_CURSOR', True) :
217217
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DENABLE_CURSOR '
218218

219-
if complie_helper.get_value('WITH_G2D', True) :
219+
if compile_helper.get_value('WITH_G2D', True) :
220220
COMMON_CCFLAGS = COMMON_CCFLAGS + ' -DWITH_G2D '
221221

222222
if TSLIB_LIB_DIR != '':
@@ -228,7 +228,7 @@ def lcd_devices_is_egl(lcd_devices):
228228
LIBPATH=[LIB_DIR, BIN_DIR] + OS_LIBPATH
229229
CCFLAGS=OS_FLAGS + COMMON_CCFLAGS
230230

231-
if complie_helper.get_value('EXTERN_CODE', None) != None :
231+
if compile_helper.get_value('EXTERN_CODE', None) != None :
232232
LINKFLAGS=OS_LINKFLAGS + toWholeArchive(['__extern_code'])
233233

234234
STATIC_LIBS =['awtk_global', 'fscript_ext_widgets', 'extwidgets', 'widgets', 'awtk_linux_fb', 'base', 'gpinyin', 'linebreak', 'fribidi']
@@ -297,8 +297,8 @@ def lcd_devices_is_egl(lcd_devices):
297297
LIBPATH = [TSLIB_LIB_DIR] + LIBPATH;
298298
CPPPATH = [TSLIB_INC_DIR] + CPPPATH;
299299

300-
LIBPATH += complie_helper.get_value('OS_LIBPATH', [])
301-
CPPPATH += complie_helper.get_value('OS_CPPPATH', [])
300+
LIBPATH += compile_helper.get_value('OS_LIBPATH', [])
301+
CPPPATH += compile_helper.get_value('OS_CPPPATH', [])
302302

303303
os.environ['LCD'] = LCD
304304
os.environ['LCD_DEVICES'] = LCD_DEVICES

awtk_config_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import platform
44
import shutil
55
import compile_config
6-
complie_helper = compile_config.get_curr_config_for_awtk()
6+
compile_helper = compile_config.get_curr_config_for_awtk()
77

88
import sys
99
if sys.version_info.major == 2:
@@ -81,7 +81,7 @@ def joinPath(root, subdir):
8181
NANOVG_BACKEND = ''
8282
NATIVE_WINDOW = ''
8383
#TOOLS_NAME = 'mingw'
84-
TOOLS_NAME = complie_helper.get_value('TOOLS_NAME', TOOLS_NAME)
84+
TOOLS_NAME = compile_helper.get_value('TOOLS_NAME', TOOLS_NAME)
8585

8686
if OS_NAME == 'Windows':
8787
TK_ROOT = TK_ROOT.replace('\\', '\\\\')
@@ -96,7 +96,7 @@ def joinPath(root, subdir):
9696
OS_PROJECTS = []
9797
# only for c compiler flags
9898
COMMON_CFLAGS = ''
99-
OS_DEBUG = complie_helper.get_value('DEBUG', True)
99+
OS_DEBUG = compile_helper.get_value('DEBUG', True)
100100

101101
if OS_NAME == 'Darwin':
102102

docs/changes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 最新动态
22

3+
2024/12/30
4+
* 修改编译脚本拼写错误(感谢兆坤提供补丁)
5+
36
2024/12/29
47
* 公共坐标改用原子操作(感谢兆坤提供补丁)
58
* 支持原子操作(感谢兆坤提供补丁)

scons_argv.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ def get_compile_config() :
4949
return compile_config.get_curr_config()
5050
else :
5151
INIT = True
52-
complie_helper = compile_config.get_curr_config_for_awtk()
53-
return complie_helper
52+
compile_helper = compile_config.get_curr_config_for_awtk()
53+
return compile_helper
5454

5555

5656
def init(ARGUMENTS) :
5757
global INIT
5858
INIT = True
59-
complie_helper = compile_config.complie_helper()
60-
complie_helper.set_compile_config(COMPILE_CONFIG)
61-
complie_helper.try_load_default_config()
62-
complie_helper.scons_user_sopt(ARGUMENTS)
63-
compile_config.set_curr_config(complie_helper)
59+
compile_helper = compile_config.compile_helper()
60+
compile_helper.set_compile_config(COMPILE_CONFIG)
61+
compile_helper.try_load_default_config()
62+
compile_helper.scons_user_sopt(ARGUMENTS)
63+
compile_config.set_curr_config(compile_helper)

0 commit comments

Comments
 (0)