Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
15631f1c
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
1 年多 前同步成功
通知
36
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
15631f1c
编写于
10月 25, 2019
作者:
M
mvandervoord
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More tweaking to make it happy on both windows and *nix
上级
8d044e60
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
14 addition
and
2 deletion
+14
-2
extras/fixture/rakefile_helper.rb
extras/fixture/rakefile_helper.rb
+9
-1
extras/fixture/test/Makefile
extras/fixture/test/Makefile
+5
-1
未找到文件。
extras/fixture/rakefile_helper.rb
浏览文件 @
15631f1c
...
@@ -6,10 +6,13 @@
...
@@ -6,10 +6,13 @@
require
'yaml'
require
'yaml'
require
'fileutils'
require
'fileutils'
require
'rbconfig'
require_relative
'../../auto/unity_test_summary'
require_relative
'../../auto/unity_test_summary'
require_relative
'../../auto/generate_test_runner'
require_relative
'../../auto/generate_test_runner'
require_relative
'../../auto/colour_reporter'
require_relative
'../../auto/colour_reporter'
$is_windows
=
(
RbConfig
::
CONFIG
[
'host_os'
]
=~
/mswin|mingw|cygwin/
)
C_EXTENSION
=
'.c'
.
freeze
C_EXTENSION
=
'.c'
.
freeze
def
load_configuration
(
config_file
)
def
load_configuration
(
config_file
)
...
@@ -52,7 +55,12 @@ def build_compiler_fields
...
@@ -52,7 +55,12 @@ def build_compiler_fields
defines
=
if
$cfg
[
'compiler'
][
'defines'
][
'items'
].
nil?
defines
=
if
$cfg
[
'compiler'
][
'defines'
][
'items'
].
nil?
''
''
else
else
squash
(
$cfg
[
'compiler'
][
'defines'
][
'prefix'
],
$cfg
[
'compiler'
][
'defines'
][
'items'
]
+
[
'UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar'
]
+
[
'UNITY_OUTPUT_CHAR_HEADER_DECLARATION=UnityOutputCharSpy_OutputChar(int)'
])
if
$is_windows
decl
=
'UNITY_OUTPUT_CHAR_HEADER_DECLARATION=UnityOutputCharSpy_OutputChar(int)'
else
decl
=
'UNITY_OUTPUT_CHAR_HEADER_DECLARATION=UnityOutputCharSpy_OutputChar\(int\)'
end
squash
(
$cfg
[
'compiler'
][
'defines'
][
'prefix'
],
$cfg
[
'compiler'
][
'defines'
][
'items'
]
+
[
'UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar'
]
+
[
decl
])
end
end
options
=
squash
(
''
,
$cfg
[
'compiler'
][
'options'
])
options
=
squash
(
''
,
$cfg
[
'compiler'
][
'options'
])
includes
=
squash
(
$cfg
[
'compiler'
][
'includes'
][
'prefix'
],
$cfg
[
'compiler'
][
'includes'
][
'items'
])
includes
=
squash
(
$cfg
[
'compiler'
][
'includes'
][
'prefix'
],
$cfg
[
'compiler'
][
'includes'
][
'items'
])
...
...
extras/fixture/test/Makefile
浏览文件 @
15631f1c
...
@@ -6,7 +6,11 @@ endif
...
@@ -6,7 +6,11 @@ endif
CFLAGS
+=
-std
=
c99
-pedantic
-Wall
-Wextra
-Werror
CFLAGS
+=
-std
=
c99
-pedantic
-Wall
-Wextra
-Werror
CFLAGS
+=
$(DEBUG)
CFLAGS
+=
$(DEBUG)
DEFINES
=
-D
UNITY_OUTPUT_CHAR
=
UnityOutputCharSpy_OutputChar
DEFINES
=
-D
UNITY_OUTPUT_CHAR
=
UnityOutputCharSpy_OutputChar
DEFINES
+=
-D
UNITY_OUTPUT_CHAR_HEADER_DECLARATION
=
UnityOutputCharSpy_OutputChar
(
int
)
ifeq
($(OS),Windows_NT)
DEFINES
+=
-D
UNITY_OUTPUT_CHAR_HEADER_DECLARATION
=
UnityOutputCharSpy_OutputChar
(
int
)
else
DEFINES
+=
-D
UNITY_OUTPUT_CHAR_HEADER_DECLARATION
=
UnityOutputCharSpy_OutputChar
\(
int
\)
endif
SRC
=
../src/unity_fixture.c
\
SRC
=
../src/unity_fixture.c
\
../../../src/unity.c
\
../../../src/unity.c
\
unity_fixture_Test.c
\
unity_fixture_Test.c
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录