- libs: 新增 hr_sdk / hotel_report / dingtalk,更新 desktopauto - controlplane-next: SDK 管理模块(controller/entity/migrations)与前端视图 - electron-shell: 插件同步、注册表、runner 调整 - plugins: XQ0035/XQ0041/XQ0042/XQ0045_XQ0046/XQ0048/XQ0076/XQ0078 等版本更新 - tests/tools: 新增 SDK 兼容性检查与打包工具(sdk_pack.py、sdk_compat_check.py)
41 lines
1.8 KiB
Python
41 lines
1.8 KiB
Python
pt DistutilsExecError as msg:
|
|
raise CompileError(msg)
|
|
continue
|
|
elif ext in self._mc_extensions:
|
|
# Compile .MC to .RC file to .RES file.
|
|
# * '-h dir' specifies the directory for the
|
|
# generated include file
|
|
# * '-r dir' specifies the target directory of the
|
|
# generated RC file and the binary message resource
|
|
# it includes
|
|
#
|
|
# For now (since there are no options to change this),
|
|
# we use the source-directory for the include file and
|
|
# the build directory for the RC file and message
|
|
# resources. This works at least for win32all.
|
|
h_dir = os.path.dirname(src)
|
|
rc_dir = os.path.dirname(obj)
|
|
try:
|
|
# first compile .MC to .RC and .H file
|
|
self.spawn([self.mc, '-h', h_dir, '-r', rc_dir, src])
|
|
base, _ = os.path.splitext(os.path.basename(src))
|
|
rc_file = os.path.join(rc_dir, base + '.rc')
|
|
# then compile .RC to .RES file
|
|
self.spawn([self.rc, "/fo" + obj, rc_file])
|
|
|
|
except DistutilsExecError as msg:
|
|
raise CompileError(msg)
|
|
continue
|
|
else:
|
|
# how to handle this file?
|
|
raise CompileError(f"Don't know how to compile {src} to {obj}")
|
|
|
|
args = [self.cc] + compile_opts + pp_opts
|
|
if add_cpp_opts:
|
|
args.append('/EHsc')
|
|
args.append(input_opt)
|
|
args.append("/Fo" + obj)
|
|
args.extend(extra_postargs)
|
|
|
|
try:
|
|
self.spawn |