File tree 7 files changed +15
-4
lines changed
CHIPTool/CHIPTool.xcodeproj
7 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ endif
263
263
endif
264
264
265
265
STD_DEFINES = \
266
+ HAVE_CONFIG_H \
266
267
__STARTUP_CLEAR_BSS \
267
268
$(MCU )
268
269
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ STD_LIBS = \
144
144
145
145
STD_INC_DIRS =
146
146
147
- STD_DEFINES =
147
+ STD_DEFINES = HAVE_CONFIG_H
148
148
149
149
STD_COMPILE_PREREQUISITES = nrf5-sdk-check
150
150
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ STD_LIBS = \
91
91
-lm \
92
92
-lpthread
93
93
94
+ STD_DEFINES = HAVE_CONFIG_H
95
+
94
96
DEFINE_FLAGS = $(addprefix -D,$(STD_DEFINES ) $(DEFINES ) )
95
97
96
98
INC_FLAGS = $(addprefix -I,$(INC_DIRS ) $(STD_INC_DIRS ) )
Original file line number Diff line number Diff line change 324
324
GCC_NO_COMMON_BLOCKS = YES;
325
325
GCC_OPTIMIZATION_LEVEL = 0;
326
326
GCC_PREPROCESSOR_DEFINITIONS = (
327
+ HAVE_CONFIG_H,
327
328
"DEBUG=1",
328
329
"$(inherited)",
329
330
);
379
380
ENABLE_STRICT_OBJC_MSGSEND = YES;
380
381
GCC_C_LANGUAGE_STANDARD = gnu11;
381
382
GCC_NO_COMMON_BLOCKS = YES;
383
+ GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
382
384
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
383
385
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
384
386
GCC_WARN_UNDECLARED_SELECTOR = YES;
Original file line number Diff line number Diff line change 273
273
outputFileListPaths = (
274
274
);
275
275
outputPaths = (
276
- "$(CHIP_PREFIX)/lib/libCHIP.a",
277
- "$(CHIP_PREFIX)/lib/libSetupPayload.a",
278
276
);
279
277
runOnlyForDeploymentPostprocessing = 0;
280
278
shellPath = /bin/sh;
358
356
GCC_NO_COMMON_BLOCKS = YES;
359
357
GCC_OPTIMIZATION_LEVEL = 0;
360
358
GCC_PREPROCESSOR_DEFINITIONS = (
359
+ HAVE_CONFIG_H,
361
360
"DEBUG=1",
362
361
"$(inherited)",
363
362
);
415
414
ENABLE_STRICT_OBJC_MSGSEND = YES;
416
415
GCC_C_LANGUAGE_STANDARD = gnu11;
417
416
GCC_NO_COMMON_BLOCKS = YES;
417
+ GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
418
418
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
419
419
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
420
420
GCC_WARN_UNDECLARED_SELECTOR = YES;
565
565
GCC_NO_COMMON_BLOCKS = YES;
566
566
GCC_OPTIMIZATION_LEVEL = 0;
567
567
GCC_PREPROCESSOR_DEFINITIONS = (
568
+ HAVE_CONFIG_H,
568
569
"DEBUG=1",
569
570
"$(inherited)",
570
571
);
670
671
ENABLE_STRICT_OBJC_MSGSEND = YES;
671
672
GCC_C_LANGUAGE_STANDARD = gnu11;
672
673
GCC_NO_COMMON_BLOCKS = YES;
674
+ GCC_PREPROCESSOR_DEFINITIONS = HAVE_CONFIG_H;
673
675
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
674
676
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
675
677
GCC_WARN_UNDECLARED_SELECTOR = YES;
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ configure_OPTIONS+=(
58
58
configure_OPTIONS+=(--with-chip-project-includes=" $CHIP_ROOT " /config/ios)
59
59
}
60
60
61
- [[ ${PLATFORM_FAMILY_NAME} == macOS ]] && configure_OPTIONS+=(--with-chip-project-includes=no)
61
+ [[ ${PLATFORM_FAMILY_NAME} == macOS ]] && {
62
+ configure_OPTIONS+=(--with-chip-project-includes=" $CHIP_ROOT " /config/standalone)
63
+ }
62
64
63
65
configure_OPTIONS+=(
64
66
--prefix=" $CHIP_PREFIX "
Original file line number Diff line number Diff line change 38
38
#define SYSTEMCONFIG_H
39
39
40
40
/* Platform include headers */
41
+ #ifdef HAVE_CONFIG_H
41
42
#include < BuildConfig.h>
43
+ #endif
42
44
43
45
/* Include a CHIP project-specific configuration file, if defined.
44
46
*
You can’t perform that action at this time.
0 commit comments