diff --git a/tutorial01/buildXcode/CMakeCache.txt b/tutorial01/buildXcode/CMakeCache.txt new file mode 100644 index 00000000..7e81f842 --- /dev/null +++ b/tutorial01/buildXcode/CMakeCache.txt @@ -0,0 +1,285 @@ +# This is the CMakeCache file. +# For build in directory: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode +# It was generated by CMake: /usr/local/Cellar/cmake/3.7.2/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar + +//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or +// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel. +CMAKE_BUILD_TYPE:STRING= + +//Semicolon separated list of supported configuration types, only +// supports Debug, Release, MinSizeRel, and RelWithDebInfo, anything +// else will be ignored. +CMAKE_CONFIGURATION_TYPES:STRING=Debug;Release;MinSizeRel;RelWithDebInfo + +//Flags used by the compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the compiler during debug builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the compiler during release builds for minimum +// size. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the compiler during release builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the compiler during release builds with debug info. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Flags used by the linker. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld + +//Flags used by the linker during the creation of modules. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=CMAKE_OBJDUMP-NOTFOUND + +//Build architectures for OSX +CMAKE_OSX_ARCHITECTURES:STRING= + +//Minimum OS X version to target for deployment (at runtime); newer +// APIs weak linked. Set to empty string for default value. +CMAKE_OSX_DEPLOYMENT_TARGET:STRING= + +//The product will be built against the headers and libraries located +// inside the indicated SDK. +CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=leptjson_test + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib + +//Flags used by the linker during the creation of dll's. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during debug builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during release minsize builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during release builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during Release with Debug Info builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Dependencies for target +leptjson_LIB_DEPENDS:STATIC= + +//Value Computed by CMake +leptjson_test_BINARY_DIR:STATIC=/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode + +//Value Computed by CMake +leptjson_test_SOURCE_DIR:STATIC=/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01 + + +######################## +# INTERNAL cache entries +######################## + +//Stored Xcode object GUID +ALL_BUILD_GUID_CMAKE:INTERNAL=0F5097E220B447EBB43F8468 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=7 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=2 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.7.2/bin/ctest +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Xcode +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01 +//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL +CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.7.2/share/cmake +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 +//Stored Xcode object GUID +PROJECT_leptjson_test_GUID_CMAKE:INTERNAL=3529316351794F22BF7F4BB5 +//Stored Xcode object GUID +ZERO_CHECK_GUID_CMAKE:INTERNAL=7383107915F749F1915E3EEE +//Stored Xcode object GUID +leptjson_GUID_CMAKE:INTERNAL=F6595E301573412BB5CD97B9 +//Stored Xcode object GUID +leptjson_test_GUID_CMAKE:INTERNAL=E74F30DBE1E54AC785C43155 + diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeCCompiler.cmake b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeCCompiler.cmake new file mode 100644 index 00000000..6c09603b --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeCCompiler.cmake @@ -0,0 +1,68 @@ +set(CMAKE_C_COMPILER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "AppleClang") +set(CMAKE_C_COMPILER_VERSION "7.3.0.7030031") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_function_prototypes;c_restrict;c_variadic_macros;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Darwin") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_SIMULATE_VERSION "") + +set(CMAKE_AR "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar") +set(CMAKE_RANLIB "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib") +set(CMAKE_LINKER "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld") +set(CMAKE_COMPILER_IS_GNUCC ) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "") +set(CMAKE_C_LIBRARY_ARCHITECTURE "") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks") diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_C.bin b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_C.bin new file mode 100755 index 00000000..4ce67243 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeDetermineCompilerABI_C.bin differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeSystem.cmake b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeSystem.cmake new file mode 100644 index 00000000..78957cc2 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Darwin-15.6.0") +set(CMAKE_HOST_SYSTEM_NAME "Darwin") +set(CMAKE_HOST_SYSTEM_VERSION "15.6.0") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Darwin-15.6.0") +set(CMAKE_SYSTEM_NAME "Darwin") +set(CMAKE_SYSTEM_VERSION "15.6.0") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 00000000..512e3606 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,561 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" + +#elif defined(__ARMCC_VERSION) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(SDCC) +# define COMPILER_ID "SDCC" + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) + +#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) +# define COMPILER_ID "MIPSpro" +# if defined(_SGI_COMPILER_VERSION) + /* _SGI_COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) +# else + /* _COMPILER_VERSION = VRP */ +# define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) +# define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) +# define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__sgi) +# define COMPILER_ID "MIPSpro" + +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__sgi) || defined(__sgi__) || defined(_SGI) +# define PLATFORM_ID "IRIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if defined(_MSC_VER) && !defined(__clang__) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC new file mode 100755 index 00000000..9b37411c Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-non-framework-target-headers.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-non-framework-target-headers.hmap new file mode 100644 index 00000000..dc511c47 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-non-framework-target-headers.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-target-headers.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-target-headers.hmap new file mode 100644 index 00000000..dc511c47 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-target-headers.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-generated-files.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-generated-files.hmap new file mode 100644 index 00000000..dd8b535d Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-generated-files.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-own-target-headers.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-own-target-headers.hmap new file mode 100644 index 00000000..dc511c47 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-own-target-headers.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-project-headers.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-project-headers.hmap new file mode 100644 index 00000000..dc511c47 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-project-headers.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC.hmap b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC.hmap new file mode 100644 index 00000000..dc511c47 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC.hmap differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.d b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.d new file mode 100644 index 00000000..60877c58 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.d @@ -0,0 +1,2 @@ +dependencies: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.dia b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.dia new file mode 100644 index 00000000..29ccd981 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.dia differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o new file mode 100644 index 00000000..61f0af2a Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC.LinkFileList b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC.LinkFileList new file mode 100644 index 00000000..4486a9c3 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC.LinkFileList @@ -0,0 +1 @@ +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC_dependency_info.dat b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC_dependency_info.dat new file mode 100644 index 00000000..8ced2898 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC_dependency_info.dat differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh new file mode 100755 index 00000000..7fdbcd1b --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo "GCC_VERSION=$GCC_VERSION" diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph new file mode 100644 index 00000000..c90b8b85 Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph~ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph~ new file mode 100644 index 00000000..a058195d Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/dgph~ differ diff --git a/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.xcodeproj/project.pbxproj b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.xcodeproj/project.pbxproj new file mode 100644 index 00000000..e799f352 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.xcodeproj/project.pbxproj @@ -0,0 +1,111 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + + 2C18F0B615DC1E0300593670 = {isa = PBXBuildFile; fileRef = 2C18F0B415DC1DC700593670; }; + 2C18F0B415DC1DC700593670 = {isa = PBXFileReference; fileEncoding = 4; explicitFileType = sourcecode.c.c; path = CMakeCCompilerId.c; sourceTree = ""; }; + 08FB7794FE84155DC02AAC07 = { + isa = PBXGroup; + children = ( + 2C18F0B415DC1DC700593670, + ); + name = CompilerIdC; + sourceTree = ""; + }; + 8DD76FA90486AB0100D96B5E = { + isa = PBXNativeTarget; + buildConfigurationList = 1DEB928508733DD80010E9CD; + buildPhases = ( + 2C18F0B515DC1DCE00593670, + 2C8FEB8E15DC1A1A00E56A5D, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CompilerIdC; + productName = CompilerIdC; + productType = "com.apple.product-type.tool"; + }; + 08FB7793FE84155DC02AAC07 = { + isa = PBXProject; + buildConfigurationList = 1DEB928908733DD80010E9CD; + compatibilityVersion = "Xcode 3.1"; + developmentRegion = English; + hasScannedForEncodings = 1; + knownRegions = ( + en, + ); + mainGroup = 08FB7794FE84155DC02AAC07; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8DD76FA90486AB0100D96B5E, + ); + }; + 2C8FEB8E15DC1A1A00E56A5D = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "echo \"GCC_VERSION=$GCC_VERSION\""; + showEnvVarsInLog = 0; + }; + 2C18F0B515DC1DCE00593670 = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2C18F0B615DC1E0300593670, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 1DEB928608733DD80010E9CD = { + isa = XCBuildConfiguration; + buildSettings = { + PRODUCT_NAME = CompilerIdC; + }; + name = Debug; + }; + 1DEB928A08733DD80010E9CD = { + isa = XCBuildConfiguration; + buildSettings = { + ONLY_ACTIVE_ARCH = YES; + CODE_SIGNING_REQUIRED = NO; + CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)"; + SYMROOT = .; + + + + SDKROOT = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"; + }; + name = Debug; + }; + 1DEB928508733DD80010E9CD = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB928608733DD80010E9CD, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 1DEB928908733DD80010E9CD = { + isa = XCConfigurationList; + buildConfigurations = ( + 1DEB928A08733DD80010E9CD, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + }; + rootObject = 08FB7793FE84155DC02AAC07; +} diff --git a/tutorial01/buildXcode/CMakeFiles/CMakeOutput.log b/tutorial01/buildXcode/CMakeFiles/CMakeOutput.log new file mode 100644 index 00000000..f254972d --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/CMakeOutput.log @@ -0,0 +1,272 @@ +The system is: Darwin - 15.6.0 - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: +Build flags: +Id flags: + +The output was: +0 +2017-01-18 16:14:03.150 xcodebuild[18005:1653293] Failed to locate a valid instance of CoreSimulatorService in the bootstrap. Adding it now. +=== BUILD TARGET CompilerIdC OF PROJECT CompilerIdC WITH THE DEFAULT CONFIGURATION (Debug) === + +Check dependencies + +Write auxiliary files +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh +chmod 0755 /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-target-headers.hmap +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC.LinkFileList +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-project-headers.hmap +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC.hmap +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-all-non-framework-target-headers.hmap +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-generated-files.hmap +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC-own-target-headers.hmap + +CompileC CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o CMakeCCompilerId.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -fvisibility=hidden -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/CompilerIdC.hmap -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/DerivedSources -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.dia -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CMakeCCompilerId.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CMakeCCompilerId.o + +Ld CompilerIdC normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC.LinkFileList -mmacosx-version-min=10.11 -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Objects-normal/x86_64/CompilerIdC_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC + +PhaseScriptExecution Run\ Script CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC + /bin/sh -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC.build/Debug/CompilerIdC.build/Script-2C8FEB8E15DC1A1A00E56A5D.sh +GCC_VERSION=com.apple.compilers.llvm.clang.1_0 + +** BUILD SUCCEEDED ** + + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CompilerIdC" + +The C compiler identification is AppleClang, found in "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CompilerIdC/CompilerIdC" + +Determining if the C compiler works passed with the following output: +Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_45406" "-configuration" "Debug" +=== BUILD TARGET cmTC_45406 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === + +Check dependencies + +Write auxiliary files +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/cmTC_45406.LinkFileList + +CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/testCCompiler.o testCCompiler.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/testCCompiler.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/testCCompiler.dia -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/testCCompiler.o + +Ld Debug/cmTC_45406 normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/cmTC_45406.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_45406.build/Objects-normal/x86_64/cmTC_45406_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_45406 + +** BUILD SUCCEEDED ** + + + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_d40ab" "-configuration" "Debug" +=== BUILD TARGET cmTC_d40ab OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === + +Check dependencies + +Write auxiliary files +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList + +CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.o /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.dia -c /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.o + +Ld Debug/cmTC_d40ab normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -v -Wl,-v -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab +Apple LLVM version 7.3.0 (clang-703.0.31) +Target: x86_64-apple-darwin15.6.0 +Thread model: posix +InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin + "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -no_deduplicate -v -search_paths_first -headerpad_max_install_names -dependency_info /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug +@(#)PROGRAM:ld PROJECT:ld64-264.3.102 +configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS) +Library search paths: + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib +Framework search paths: + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug + /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/ + +** BUILD SUCCEEDED ** + + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_d40ab" "-configuration" "Debug"] + ignore line: [=== BUILD TARGET cmTC_d40ab OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===] + ignore line: [] + ignore line: [Check dependencies] + ignore line: [] + ignore line: [Write auxiliary files] + ignore line: [/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64] + ignore line: [write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList] + ignore line: [] + ignore line: [CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.o /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler] + ignore line: [ cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp] + ignore line: [ export LANG=en_US.US-ASCII] + ignore line: [ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.dia -c /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/CMakeCCompilerABI.o] + ignore line: [] + ignore line: [Ld Debug/cmTC_d40ab normal x86_64] + ignore line: [ cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp] + ignore line: [ export MACOSX_DEPLOYMENT_TARGET=10.11] + ignore line: [ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -v -Wl,-v -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab] + ignore line: [Apple LLVM version 7.3.0 (clang-703.0.31)] + ignore line: [Target: x86_64-apple-darwin15.6.0] + ignore line: [Thread model: posix] + ignore line: [InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin] + reduced line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -no_deduplicate -v -search_paths_first -headerpad_max_install_names -dependency_info /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug] + to: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -no_deduplicate -v -search_paths_first -headerpad_max_install_names -dependency_info /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a ] + link line: [ "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList -no_deduplicate -v -search_paths_first -headerpad_max_install_names -dependency_info /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a ] + arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld] ==> ignore + arg [-demangle] ==> ignore + arg [-dynamic] ==> ignore + arg [-arch] ==> ignore + arg [x86_64] ==> ignore + arg [-macosx_version_min] ==> ignore + arg [10.11.0] ==> ignore + arg [-syslibroot] ==> ignore + arg [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk] ==> ignore + arg [-o] ==> ignore + arg [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_d40ab] ==> ignore + arg [-filelist] ==> ignore + arg [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab.LinkFileList] ==> ignore + arg [-no_deduplicate] ==> ignore + arg [-v] ==> ignore + arg [-search_paths_first] ==> ignore + arg [-headerpad_max_install_names] ==> ignore + arg [-dependency_info] ==> ignore + arg [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_d40ab.build/Objects-normal/x86_64/cmTC_d40ab_dependency_info.dat] ==> ignore + arg [-lSystem] ==> lib [System] + arg [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a] ==> lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a] + Library search paths: [;/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib] + Framework search paths: [;/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/] + remove lib [System] + remove lib [/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a] + collapse library dir [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug] ==> [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug], skipping non-system directory + collapse library dir [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib] ==> [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib] + collapse framework dir [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug] ==> [/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug], skipping non-system directory + collapse framework dir [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/] ==> [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks] + implicit libs: [] + implicit dirs: [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib] + implicit fwks: [/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks] + + + + +Detecting C [-std=c11] compiler features compiled with the following output: +Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_dac7d" "-configuration" "Debug" +=== BUILD TARGET cmTC_dac7d OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === + +Check dependencies + +Write auxiliary files +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/cmTC_dac7d.LinkFileList + +CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/feature_tests.o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -std=c11 -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/feature_tests.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/feature_tests.dia -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/feature_tests.o + +Ld Debug/cmTC_dac7d normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/cmTC_dac7d.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_dac7d.build/Objects-normal/x86_64/cmTC_dac7d_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_dac7d + +** BUILD SUCCEEDED ** + + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:1c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c99] compiler features compiled with the following output: +Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_370af" "-configuration" "Debug" +=== BUILD TARGET cmTC_370af OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === + +Check dependencies + +Write auxiliary files +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/cmTC_370af.LinkFileList + +CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/feature_tests.o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -std=c99 -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/feature_tests.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/feature_tests.dia -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/feature_tests.o + +Ld Debug/cmTC_370af normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/cmTC_370af.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_370af.build/Objects-normal/x86_64/cmTC_370af_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_370af + +** BUILD SUCCEEDED ** + + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:1c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:1c_variadic_macros + + +Detecting C [-std=c90] compiler features compiled with the following output: +Change Dir: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + +Run Build Command:"/usr/bin/xcodebuild" "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target" "cmTC_0bf11" "-configuration" "Debug" +=== BUILD TARGET cmTC_0bf11 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug === + +Check dependencies + +Write auxiliary files +/bin/mkdir -p /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64 +write-file /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/cmTC_0bf11.LinkFileList + +CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/feature_tests.o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export LANG=en_US.US-ASCII + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.11 -g -Wno-sign-conversion -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/include -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/DerivedSources/x86_64 -I/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -std=c90 -MMD -MT dependencies -MF /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/feature_tests.d --serialize-diagnostics /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/feature_tests.dia -c /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/feature_tests.o + +Ld Debug/cmTC_0bf11 normal x86_64 + cd /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp + export MACOSX_DEPLOYMENT_TARGET=10.11 + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -F/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug -filelist /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/cmTC_0bf11.LinkFileList -mmacosx-version-min=10.11 -Xlinker -no_deduplicate -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_0bf11.build/Objects-normal/x86_64/cmTC_0bf11_dependency_info.dat -o /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/CMakeTmp/Debug/cmTC_0bf11 + +** BUILD SUCCEEDED ** + + + + Feature record: C_FEATURE:1c_function_prototypes + Feature record: C_FEATURE:0c_restrict + Feature record: C_FEATURE:0c_static_assert + Feature record: C_FEATURE:0c_variadic_macros diff --git a/tutorial01/buildXcode/CMakeFiles/TargetDirectories.txt b/tutorial01/buildXcode/CMakeFiles/TargetDirectories.txt new file mode 100644 index 00000000..bff7e345 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,4 @@ +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/leptjson_test.dir +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/leptjson.dir +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD.dir +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK.dir diff --git a/tutorial01/buildXcode/CMakeFiles/cmake.check_cache b/tutorial01/buildXcode/CMakeFiles/cmake.check_cache new file mode 100644 index 00000000..3dccd731 --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/tutorial01/buildXcode/CMakeFiles/feature_tests.bin b/tutorial01/buildXcode/CMakeFiles/feature_tests.bin new file mode 100755 index 00000000..04ada18b Binary files /dev/null and b/tutorial01/buildXcode/CMakeFiles/feature_tests.bin differ diff --git a/tutorial01/buildXcode/CMakeFiles/feature_tests.c b/tutorial01/buildXcode/CMakeFiles/feature_tests.c new file mode 100644 index 00000000..afbc86df --- /dev/null +++ b/tutorial01/buildXcode/CMakeFiles/feature_tests.c @@ -0,0 +1,34 @@ + + const char features[] = {"\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 +"1" +#else +"0" +#endif +"c_function_prototypes\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_restrict\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L +"1" +#else +"0" +#endif +"c_static_assert\n" +"C_FEATURE:" +#if ((__clang_major__ * 100) + __clang_minor__) >= 400 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +"1" +#else +"0" +#endif +"c_variadic_macros\n" + +}; + +int main(int argc, char** argv) { (void)argv; return features[argc]; } diff --git a/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeDebug b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeDebug new file mode 100644 index 00000000..42203210 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeDebug @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ALL_BUILD +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD: + echo "" + echo Build\ all\ projects diff --git a/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeMinSizeRel b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeMinSizeRel new file mode 100644 index 00000000..42203210 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeMinSizeRel @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ALL_BUILD +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD: + echo "" + echo Build\ all\ projects diff --git a/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelWithDebInfo b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelWithDebInfo new file mode 100644 index 00000000..42203210 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelWithDebInfo @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ALL_BUILD +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD: + echo "" + echo Build\ all\ projects diff --git a/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelease b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelease new file mode 100644 index 00000000..42203210 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.makeRelease @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ALL_BUILD +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ALL_BUILD: + echo "" + echo Build\ all\ projects diff --git a/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make b/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make new file mode 100644 index 00000000..1083906f --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make @@ -0,0 +1,77 @@ +# Generated by CMake, DO NOT EDIT + +empty:= +space:= $(empty) $(empty) +spaceplus:= $(empty)\ $(empty) + +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeCCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/3.7.2/CMakeSystem.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/feature_tests.c)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompiler.cmake.in)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCCompilerABI.c)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCInformation.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCommonLanguageInclude.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeCompilerIdDetection.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineCCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineCompilerABI.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineCompilerId.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeDetermineSystem.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeFindBinUtils.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeGenericSystem.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeLanguageInformation.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeParseArguments.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeSystem.cmake.in)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CMakeTestCompilerCommon.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/AppleClang-C-FeatureTests.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/AppleClang-C.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Bruce-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Clang.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/GNU-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/GNU.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/MIPSpro-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/CompilerId/Xcode-3.pbxproj.in)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Internal/FeatureTesting.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/Darwin-AppleClang-C.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/Darwin-Clang-C.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/Darwin-Clang.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/Darwin-Initialize.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/Darwin.cmake)) +TARGETS += $(subst $(space),$(spaceplus),$(wildcard /usr/local/Cellar/cmake/3.7.2/share/cmake/Modules/Platform/UnixPaths.cmake)) + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/cmake.check_cache: $(TARGETS) + /usr/local/Cellar/cmake/3.7.2/bin/cmake -H/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01 -B/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode diff --git a/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeDebug b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeDebug new file mode 100644 index 00000000..39e8fc68 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeDebug @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ZERO_CHECK +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK: + echo "" + make -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make diff --git a/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeMinSizeRel b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeMinSizeRel new file mode 100644 index 00000000..39e8fc68 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeMinSizeRel @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ZERO_CHECK +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK: + echo "" + make -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make diff --git a/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelWithDebInfo b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelWithDebInfo new file mode 100644 index 00000000..39e8fc68 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelWithDebInfo @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ZERO_CHECK +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK: + echo "" + make -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make diff --git a/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelease b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelease new file mode 100644 index 00000000..39e8fc68 --- /dev/null +++ b/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.makeRelease @@ -0,0 +1,10 @@ +# Generated by CMake, DO NOT EDIT +# Custom rules for ZERO_CHECK +.SUFFIXES: +all: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK + + +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeFiles/ZERO_CHECK: + echo "" + make -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ReRunCMake.make diff --git a/tutorial01/buildXcode/Debug/leptjson_test b/tutorial01/buildXcode/Debug/leptjson_test new file mode 100755 index 00000000..18cb4b58 Binary files /dev/null and b/tutorial01/buildXcode/Debug/leptjson_test differ diff --git a/tutorial01/buildXcode/Debug/libleptjson.a b/tutorial01/buildXcode/Debug/libleptjson.a new file mode 100644 index 00000000..4004b9de Binary files /dev/null and b/tutorial01/buildXcode/Debug/libleptjson.a differ diff --git a/tutorial01/buildXcode/cmake_install.cmake b/tutorial01/buildXcode/cmake_install.cmake new file mode 100644 index 00000000..adc94cc5 --- /dev/null +++ b/tutorial01/buildXcode/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Release") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/Script-B6C5E4358865405FAC4BD192.sh b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/Script-B6C5E4358865405FAC4BD192.sh new file mode 100755 index 00000000..ab89b429 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/Script-B6C5E4358865405FAC4BD192.sh @@ -0,0 +1,2 @@ +#!/bin/sh +make -C /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.make$CONFIGURATION all diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph new file mode 100644 index 00000000..8e3cd5e4 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph~ b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph~ new file mode 100644 index 00000000..f5d76f26 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/ALL_BUILD.build/dgph~ differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/Script-A27BDB4FF195400D84738D51.sh b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/Script-A27BDB4FF195400D84738D51.sh new file mode 100755 index 00000000..b9d53615 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/Script-A27BDB4FF195400D84738D51.sh @@ -0,0 +1,2 @@ +#!/bin/sh +make -C /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.make$CONFIGURATION all diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph new file mode 100644 index 00000000..33cce1be Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph~ b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph~ new file mode 100644 index 00000000..d1fd928a Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/ZERO_CHECK.build/dgph~ differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.LinkFileList b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.LinkFileList new file mode 100644 index 00000000..18bb9d54 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.LinkFileList @@ -0,0 +1 @@ +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.o diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.d b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.d new file mode 100644 index 00000000..76ded972 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.d @@ -0,0 +1,3 @@ +dependencies: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.h diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.dia b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.dia new file mode 100644 index 00000000..29ccd981 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.dia differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.o b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.o new file mode 100644 index 00000000..bf892d48 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/Objects-normal/x86_64/leptjson.o differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph new file mode 100644 index 00000000..07076660 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph~ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph~ new file mode 100644 index 00000000..49d8f772 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson.build/dgph~ differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test.LinkFileList b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test.LinkFileList new file mode 100644 index 00000000..4b70d0c4 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test.LinkFileList @@ -0,0 +1 @@ +/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.o diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test_dependency_info.dat b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test_dependency_info.dat new file mode 100644 index 00000000..4780bf6c Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/leptjson_test_dependency_info.dat differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.d b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.d new file mode 100644 index 00000000..4a183729 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.d @@ -0,0 +1,3 @@ +dependencies: \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c \ + /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.h diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.dia b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.dia new file mode 100644 index 00000000..29ccd981 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.dia differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.o b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.o new file mode 100644 index 00000000..0f340390 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/Objects-normal/x86_64/test.o differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph new file mode 100644 index 00000000..3f325888 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph differ diff --git a/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph~ b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph~ new file mode 100644 index 00000000..8da71b75 Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.build/Debug/leptjson_test.build/dgph~ differ diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/project.pbxproj b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.pbxproj new file mode 100644 index 00000000..9e1cbe27 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.pbxproj @@ -0,0 +1,862 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXAggregateTarget section */ + 0F5097E220B447EBB43F8468 /* ALL_BUILD */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 5CFA914A0C87458B84B2DE1E /* Build configuration list for PBXAggregateTarget "ALL_BUILD" */; + buildPhases = ( + B6C5E4358865405FAC4BD192 /* CMake Rules */, + ); + dependencies = ( + DF1341AFA5FF4FE0AEC3F0F8 /* PBXTargetDependency */, + 619C32FF16CD48F4A940B701 /* PBXTargetDependency */, + 52507C5F7962491AABB53F28 /* PBXTargetDependency */, + ); + name = ALL_BUILD; + productName = ALL_BUILD; + }; + 7383107915F749F1915E3EEE /* ZERO_CHECK */ = { + isa = PBXAggregateTarget; + buildConfigurationList = 0FF9D3A04895476CAD8A200E /* Build configuration list for PBXAggregateTarget "ZERO_CHECK" */; + buildPhases = ( + A27BDB4FF195400D84738D51 /* CMake Rules */, + ); + dependencies = ( + ); + name = ZERO_CHECK; + productName = ZERO_CHECK; + }; +/* End PBXAggregateTarget section */ + +/* Begin PBXBuildFile section */ + 9699B8DA0EF14CDCA2420CA8 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXBuildFile; fileRef = 4BE7B551D64B49339CECA64B /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */; }; + BDC52961E5E343BFB145322C /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c */ = {isa = PBXBuildFile; fileRef = 0C27FBDBCC1641FD85EC2082 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c */; }; + DA59FE8F368E4EBB9ED170D4 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXBuildFile; fileRef = C332870D5FD2470598143B7D /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */; }; + DB2DD9D6845A45D1888BB3A0 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c */ = {isa = PBXBuildFile; fileRef = F86C8E9961F84B509B3B8B36 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c */; }; +/* End PBXBuildFile section */ + +/* Begin PBXBuildStyle section */ + 07AD650A71714B42A0D44D64 /* MinSizeRel */ = { + isa = PBXBuildStyle; + buildSettings = { + COPY_PHASE_STRIP = NO; + }; + name = MinSizeRel; + }; + 588019DFE03547AF9A183000 /* Release */ = { + isa = PBXBuildStyle; + buildSettings = { + COPY_PHASE_STRIP = NO; + }; + name = Release; + }; + B5548C4016124566941426CB = { + isa = PBXBuildStyle; + }; + E86F50A1A0684281ABAA8044 /* Debug */ = { + isa = PBXBuildStyle; + buildSettings = { + COPY_PHASE_STRIP = NO; + }; + name = Debug; + }; + EC46C098AF8B45558E4621D3 /* RelWithDebInfo */ = { + isa = PBXBuildStyle; + buildSettings = { + COPY_PHASE_STRIP = NO; + }; + name = RelWithDebInfo; + }; +/* End PBXBuildStyle section */ + +/* Begin PBXContainerItemProxy section */ + 33A57710754048C4BF4CF64B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F6595E301573412BB5CD97B9; + remoteInfo = leptjson; + }; + 54636F72980442A28B847F94 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = F6595E301573412BB5CD97B9; + remoteInfo = leptjson; + }; + 587C95D0256C41C1B9192301 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7383107915F749F1915E3EEE; + remoteInfo = ZERO_CHECK; + }; + 6B5A891299DB48088EF45290 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7383107915F749F1915E3EEE; + remoteInfo = ZERO_CHECK; + }; + 758AAFF4282F4F39A4FB59CC /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = E74F30DBE1E54AC785C43155; + remoteInfo = leptjson_test; + }; + DF746A8097E844C9BF6D766A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 3529316351794F22BF7F4BB5 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 7383107915F749F1915E3EEE; + remoteInfo = ZERO_CHECK; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 0C27FBDBCC1641FD85EC2082 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; name = test.c; path = test.c; sourceTree = SOURCE_ROOT; }; + 0EB67EDD61694F4D840C8F86 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; name = CMakeLists.txt; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; }; + 4BE7B551D64B49339CECA64B /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; name = CMakeLists.txt; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; }; + 99D6DA9588D24C46BEBB368B /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; name = CMakeLists.txt; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; }; + A6ECD3BF0D004E1DA90BA7C3 /* leptjson_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; path = leptjson_test; sourceTree = BUILT_PRODUCTS_DIR; }; + C332870D5FD2470598143B7D /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */ = {isa = PBXFileReference; explicitFileType = sourcecode.text; fileEncoding = 4; name = CMakeLists.txt; path = CMakeLists.txt; sourceTree = SOURCE_ROOT; }; + E5740BFA440C431B90C654C3 /* leptjson */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libleptjson.a; sourceTree = BUILT_PRODUCTS_DIR; }; + F86C8E9961F84B509B3B8B36 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c */ = {isa = PBXFileReference; explicitFileType = sourcecode.c.c; fileEncoding = 4; name = leptjson.c; path = leptjson.c; sourceTree = SOURCE_ROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXGroup section */ + 0F88C5B02710430E863298BF /* Resources */ = { + isa = PBXGroup; + children = ( + ); + name = Resources; + sourceTree = ""; + }; + 2C5A5C38F36648F988CB8424 /* CMake Rules */ = { + isa = PBXGroup; + children = ( + ); + name = "CMake Rules"; + sourceTree = ""; + }; + 4C5CBED553574F66BF058C20 /* CMake Rules */ = { + isa = PBXGroup; + children = ( + ); + name = "CMake Rules"; + sourceTree = ""; + }; + 4D540C59F34A45D2A1F85EDD /* leptjson */ = { + isa = PBXGroup; + children = ( + B4DCE035793441AA812C0B4B /* Source Files */, + C332870D5FD2470598143B7D /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */, + ); + name = leptjson; + sourceTree = ""; + }; + 735C3FF4CDDA40C5826773E1 /* ZERO_CHECK */ = { + isa = PBXGroup; + children = ( + 2C5A5C38F36648F988CB8424 /* CMake Rules */, + 0EB67EDD61694F4D840C8F86 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */, + ); + name = ZERO_CHECK; + sourceTree = ""; + }; + 7B5D71A27D0542488FA30669 /* leptjson_test */ = { + isa = PBXGroup; + children = ( + 87B9751025254205BAFA275B /* Source Files */, + 4BE7B551D64B49339CECA64B /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */, + ); + name = leptjson_test; + sourceTree = ""; + }; + 87B9751025254205BAFA275B /* Source Files */ = { + isa = PBXGroup; + children = ( + 0C27FBDBCC1641FD85EC2082 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c */, + ); + name = "Source Files"; + sourceTree = ""; + }; + 8CC031F07FE443CCB9EA1435 /* Sources */ = { + isa = PBXGroup; + children = ( + 7B5D71A27D0542488FA30669 /* leptjson_test */, + 4D540C59F34A45D2A1F85EDD /* leptjson */, + A9B7E48387664CF1B85BF965 /* ALL_BUILD */, + 735C3FF4CDDA40C5826773E1 /* ZERO_CHECK */, + ); + name = Sources; + sourceTree = ""; + }; + 9AAB7AF0E49545F3BF851E6D /* Products */ = { + isa = PBXGroup; + children = ( + E5740BFA440C431B90C654C3 /* leptjson */, + A6ECD3BF0D004E1DA90BA7C3 /* leptjson_test */, + ); + name = Products; + sourceTree = ""; + }; + A9B7E48387664CF1B85BF965 /* ALL_BUILD */ = { + isa = PBXGroup; + children = ( + 4C5CBED553574F66BF058C20 /* CMake Rules */, + 99D6DA9588D24C46BEBB368B /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/CMakeLists.txt */, + ); + name = ALL_BUILD; + sourceTree = ""; + }; + B4DCE035793441AA812C0B4B /* Source Files */ = { + isa = PBXGroup; + children = ( + F86C8E9961F84B509B3B8B36 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c */, + ); + name = "Source Files"; + sourceTree = ""; + }; + C42DCA6198B84090927B81D7 = { + isa = PBXGroup; + children = ( + 8CC031F07FE443CCB9EA1435 /* Sources */, + 0F88C5B02710430E863298BF /* Resources */, + 9AAB7AF0E49545F3BF851E6D /* Products */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + E74F30DBE1E54AC785C43155 /* leptjson_test */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1181288DFAC2492E91E5B9E1 /* Build configuration list for PBXNativeTarget "leptjson_test" */; + buildPhases = ( + D029CDB57A454118A4A82E70 /* Sources */, + ); + buildRules = ( + ); + dependencies = ( + E9F11AD8B5A54925BFD683D3 /* PBXTargetDependency */, + 0364B031C1A04A6D89C5642B /* PBXTargetDependency */, + ); + name = leptjson_test; + productName = leptjson_test; + productReference = A6ECD3BF0D004E1DA90BA7C3 /* leptjson_test */; + productType = "com.apple.product-type.tool"; + }; + F6595E301573412BB5CD97B9 /* leptjson */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2B5B335424BE49D7B668CD64 /* Build configuration list for PBXNativeTarget "leptjson" */; + buildPhases = ( + A9661FEF46CB4694987B00AC /* Sources */, + ); + buildRules = ( + ); + dependencies = ( + 585FF0F3933444F1A6DFE21F /* PBXTargetDependency */, + ); + name = leptjson; + productName = leptjson; + productReference = E5740BFA440C431B90C654C3 /* leptjson */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3529316351794F22BF7F4BB5 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 0730; + }; + buildConfigurationList = 15233730889E470B93DA7220 /* Build configuration list for PBXProject "leptjson_test" */; + buildSettings = { + }; + buildStyles = ( + E86F50A1A0684281ABAA8044 /* Debug */, + 588019DFE03547AF9A183000 /* Release */, + 07AD650A71714B42A0D44D64 /* MinSizeRel */, + EC46C098AF8B45558E4621D3 /* RelWithDebInfo */, + ); + compatibilityVersion = "Xcode 3.2"; + hasScannedForEncodings = 0; + mainGroup = C42DCA6198B84090927B81D7; + projectDirPath = ../; + projectRoot = ""; + targets = ( + 0F5097E220B447EBB43F8468 /* ALL_BUILD */, + 7383107915F749F1915E3EEE /* ZERO_CHECK */, + F6595E301573412BB5CD97B9 /* leptjson */, + E74F30DBE1E54AC785C43155 /* leptjson_test */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXShellScriptBuildPhase section */ + 68C28DF72211493FB07D1473 = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# shell script goes here +exit 0"; + showEnvVarsInLog = 0; + }; + A27BDB4FF195400D84738D51 /* CMake Rules */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + name = "CMake Rules"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "make -C /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ZERO_CHECK_cmakeRulesBuildPhase.make$CONFIGURATION all"; + showEnvVarsInLog = 0; + }; + B338080F973145CAB9D812DD = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# shell script goes here +exit 0"; + showEnvVarsInLog = 0; + }; + B6C5E4358865405FAC4BD192 /* CMake Rules */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + name = "CMake Rules"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "make -C /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode -f /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/CMakeScripts/ALL_BUILD_cmakeRulesBuildPhase.make$CONFIGURATION all"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + A9661FEF46CB4694987B00AC /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DB2DD9D6845A45D1888BB3A0 /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/leptjson.c */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + D029CDB57A454118A4A82E70 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BDC52961E5E343BFB145322C /* /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/test.c */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 0364B031C1A04A6D89C5642B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7383107915F749F1915E3EEE /* ZERO_CHECK */; + targetProxy = 587C95D0256C41C1B9192301 /* PBXContainerItemProxy */; + }; + 52507C5F7962491AABB53F28 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = E74F30DBE1E54AC785C43155 /* leptjson_test */; + targetProxy = 758AAFF4282F4F39A4FB59CC /* PBXContainerItemProxy */; + }; + 585FF0F3933444F1A6DFE21F /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7383107915F749F1915E3EEE /* ZERO_CHECK */; + targetProxy = 6B5A891299DB48088EF45290 /* PBXContainerItemProxy */; + }; + 619C32FF16CD48F4A940B701 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 7383107915F749F1915E3EEE /* ZERO_CHECK */; + targetProxy = DF746A8097E844C9BF6D766A /* PBXContainerItemProxy */; + }; + DF1341AFA5FF4FE0AEC3F0F8 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F6595E301573412BB5CD97B9 /* leptjson */; + targetProxy = 54636F72980442A28B847F94 /* PBXContainerItemProxy */; + }; + E9F11AD8B5A54925BFD683D3 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = F6595E301573412BB5CD97B9 /* leptjson */; + targetProxy = 33A57710754048C4BF4CF64B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 16A50F07E78F4F45B3470FB8 /* RelWithDebInfo */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = lib; + EXECUTABLE_SUFFIX = .a; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 2; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_STYLE = STATIC; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LIBTOOLFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = RelWithDebInfo; + }; + 267E94A8C9AE4F0AA6A6D0F6 /* MinSizeRel */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = ""; + EXECUTABLE_SUFFIX = ""; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = s; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LDFLAGS = " -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/MinSizeRel/libleptjson.a"; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson_test; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = MinSizeRel; + }; + 3ED6173C27AE4BCA9E1D4638 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ALL_BUILD; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Release; + }; + 459AE299DFA14AF3B03DA737 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ALL_BUILD; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Debug; + }; + 4A55F7A880F246E68C696210 /* RelWithDebInfo */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ZERO_CHECK; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = RelWithDebInfo; + }; + 4BF76A28C4934C2D8E5E32F9 /* MinSizeRel */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ZERO_CHECK; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = MinSizeRel; + }; + 5008107972C6494EB9246DF5 /* RelWithDebInfo */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ALL_BUILD; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = RelWithDebInfo; + }; + 564102AEA1AD4CF486DDF35A /* MinSizeRel */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = lib; + EXECUTABLE_SUFFIX = .a; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = s; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_STYLE = STATIC; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LIBTOOLFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = MinSizeRel; + }; + 6A623E00ADEF4B2F8CCA7665 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = ""; + EXECUTABLE_SUFFIX = ""; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = " -ansi -pedantic -Wall "; + OTHER_LDFLAGS = " -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/Debug/libleptjson.a"; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson_test; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Debug; + }; + 6ABE00F177C743C6B091C2FB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ONLY_ACTIVE_ARCH = YES; + SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/build"; + }; + name = Release; + }; + 6B1603F6E2C14709B75735E6 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = lib; + EXECUTABLE_SUFFIX = .a; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 3; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_STYLE = STATIC; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LIBTOOLFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Release; + }; + 793962C3526E41878FBB0B67 /* RelWithDebInfo */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = ""; + EXECUTABLE_SUFFIX = ""; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 2; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LDFLAGS = " -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/RelWithDebInfo/libleptjson.a"; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson_test; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = RelWithDebInfo; + }; + 82BBD0AB763943C1A8D64FDF /* MinSizeRel */ = { + isa = XCBuildConfiguration; + buildSettings = { + ONLY_ACTIVE_ARCH = YES; + SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/build"; + }; + name = MinSizeRel; + }; + 86FF6B95DB764E9FAFB09FBB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ZERO_CHECK; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Release; + }; + 9DADA6256FDC4FB9B0AB4FDE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = lib; + EXECUTABLE_SUFFIX = .a; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_STYLE = STATIC; + OTHER_CFLAGS = " -ansi -pedantic -Wall "; + OTHER_LIBTOOLFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Debug; + }; + AAC4818C8349432AB6419CB0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ZERO_CHECK; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Debug; + }; + BC16DD48B39846098EAE1A6B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + EXECUTABLE_PREFIX = ""; + EXECUTABLE_SUFFIX = ""; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 3; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + OTHER_CFLAGS = " -ansi -pedantic -Wall -DNDEBUG "; + OTHER_LDFLAGS = " -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/Release/libleptjson.a"; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = leptjson_test; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = Release; + }; + D8CFBF76D04C45A0BA813BC0 /* RelWithDebInfo */ = { + isa = XCBuildConfiguration; + buildSettings = { + ONLY_ACTIVE_ARCH = YES; + SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/build"; + }; + name = RelWithDebInfo; + }; + E74DD66BE9F647569CC6446A /* MinSizeRel */ = { + isa = XCBuildConfiguration; + buildSettings = { + COMBINE_HIDPI_IMAGES = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_INLINES_ARE_PRIVATE_EXTERN = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ("'CMAKE_INTDIR=\"$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\"'"); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + INSTALL_PATH = ""; + OTHER_LDFLAGS = " "; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = ALL_BUILD; + SECTORDER_FLAGS = ""; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode"; + USE_HEADERMAP = NO; + WARNING_CFLAGS = ("-Wmost","-Wno-four-char-constants","-Wno-unknown-pragmas","$(inherited)"); + }; + name = MinSizeRel; + }; + F1EAFEFCAD3D4DC89F131A4A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ONLY_ACTIVE_ARCH = YES; + SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk; + SYMROOT = "/Users/tinggong/github/jsontutorial/json-tutorial/tutorial01/buildXcode/build"; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 0FF9D3A04895476CAD8A200E /* Build configuration list for PBXAggregateTarget "ZERO_CHECK" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AAC4818C8349432AB6419CB0 /* Debug */, + 86FF6B95DB764E9FAFB09FBB /* Release */, + 4BF76A28C4934C2D8E5E32F9 /* MinSizeRel */, + 4A55F7A880F246E68C696210 /* RelWithDebInfo */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 1181288DFAC2492E91E5B9E1 /* Build configuration list for PBXNativeTarget "leptjson_test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 6A623E00ADEF4B2F8CCA7665 /* Debug */, + BC16DD48B39846098EAE1A6B /* Release */, + 267E94A8C9AE4F0AA6A6D0F6 /* MinSizeRel */, + 793962C3526E41878FBB0B67 /* RelWithDebInfo */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 15233730889E470B93DA7220 /* Build configuration list for PBXProject "leptjson_test" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F1EAFEFCAD3D4DC89F131A4A /* Debug */, + 6ABE00F177C743C6B091C2FB /* Release */, + 82BBD0AB763943C1A8D64FDF /* MinSizeRel */, + D8CFBF76D04C45A0BA813BC0 /* RelWithDebInfo */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 2B5B335424BE49D7B668CD64 /* Build configuration list for PBXNativeTarget "leptjson" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9DADA6256FDC4FB9B0AB4FDE /* Debug */, + 6B1603F6E2C14709B75735E6 /* Release */, + 564102AEA1AD4CF486DDF35A /* MinSizeRel */, + 16A50F07E78F4F45B3470FB8 /* RelWithDebInfo */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 5CFA914A0C87458B84B2DE1E /* Build configuration list for PBXAggregateTarget "ALL_BUILD" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 459AE299DFA14AF3B03DA737 /* Debug */, + 3ED6173C27AE4BCA9E1D4638 /* Release */, + E74DD66BE9F647569CC6446A /* MinSizeRel */, + 5008107972C6494EB9246DF5 /* RelWithDebInfo */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3529316351794F22BF7F4BB5 /* Project object */; +} diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/UserInterfaceState.xcuserstate b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 00000000..29a48ebe Binary files /dev/null and b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/WorkspaceSettings.xcsettings b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..a8f61126 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/project.xcworkspace/xcuserdata/tinggong.xcuserdatad/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + BuildLocationStyle + UseTargetSettings + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 00000000..7cc8a618 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ALL_BUILD.xcscheme b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ALL_BUILD.xcscheme new file mode 100644 index 00000000..b38fd593 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ALL_BUILD.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ZERO_CHECK.xcscheme b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ZERO_CHECK.xcscheme new file mode 100644 index 00000000..9a6bdc8c --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/ZERO_CHECK.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson.xcscheme b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson.xcscheme new file mode 100644 index 00000000..9279d9ee --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson_test.xcscheme b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson_test.xcscheme new file mode 100644 index 00000000..705afa79 --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/leptjson_test.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/xcschememanagement.plist b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..140957df --- /dev/null +++ b/tutorial01/buildXcode/leptjson_test.xcodeproj/xcuserdata/tinggong.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,52 @@ + + + + + SchemeUserState + + ALL_BUILD.xcscheme + + orderHint + 0 + + ZERO_CHECK.xcscheme + + orderHint + 1 + + leptjson.xcscheme + + orderHint + 2 + + leptjson_test.xcscheme + + orderHint + 3 + + + SuppressBuildableAutocreation + + 0F5097E220B447EBB43F8468 + + primary + + + 7383107915F749F1915E3EEE + + primary + + + E74F30DBE1E54AC785C43155 + + primary + + + F6595E301573412BB5CD97B9 + + primary + + + + + diff --git a/tutorial01/leptjson.c b/tutorial01/leptjson.c index 5299fe1d..dc0a26d9 100644 --- a/tutorial01/leptjson.c +++ b/tutorial01/leptjson.c @@ -24,9 +24,29 @@ static int lept_parse_null(lept_context* c, lept_value* v) { return LEPT_PARSE_OK; } +static int lept_parse_true(lept_context* c, lept_value* v){ + EXPECT(c, 't'); + if(c->json[0] != 'r' || c->json[1] != 'u' || c->json[2] != 'e') + return LEPT_PARSE_INVALID_VALUE; + c->json += 3; + v->type = LEPT_TRUE; + return LEPT_PARSE_OK; + +} + +static int lept_parse_false(lept_context* c, lept_value* v){ + EXPECT(c, 'f'); + if(c->json[0] != 'a' || c->json[1] != 'l' || c->json[2] != 's' || c->json[3] != 'e') + return LEPT_PARSE_INVALID_VALUE; + c->json += 4; + v->type = LEPT_FALSE; + return LEPT_PARSE_OK; +} static int lept_parse_value(lept_context* c, lept_value* v) { switch (*c->json) { case 'n': return lept_parse_null(c, v); + case 't': return lept_parse_true(c, v); + case 'f': return lept_parse_false(c ,v); case '\0': return LEPT_PARSE_EXPECT_VALUE; default: return LEPT_PARSE_INVALID_VALUE; } @@ -34,11 +54,19 @@ static int lept_parse_value(lept_context* c, lept_value* v) { int lept_parse(lept_value* v, const char* json) { lept_context c; + int parse_value; assert(v != NULL); c.json = json; v->type = LEPT_NULL; lept_parse_whitespace(&c); - return lept_parse_value(&c, v); + if((parse_value = lept_parse_value(&c, v)) == LEPT_PARSE_OK){ + lept_parse_whitespace(&c); + if (*c.json != '\0'){ + parse_value = LEPT_PARSE_ROOT_NOT_SINGULAR; + } + + } + return parse_value; } lept_type lept_get_type(const lept_value* v) { diff --git a/tutorial01/test.c b/tutorial01/test.c index e7672181..42ef4dfa 100644 --- a/tutorial01/test.c +++ b/tutorial01/test.c @@ -27,6 +27,20 @@ static void test_parse_null() { EXPECT_EQ_INT(LEPT_NULL, lept_get_type(&v)); } +static void test_parse_true(){ + lept_value v; + v.type = LEPT_NULL; + EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "true")); + EXPECT_EQ_INT(LEPT_TRUE, lept_get_type(&v)); +} + +static void test_parse_false(){ + lept_value v; + v.type = LEPT_NULL; + EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "false")); + EXPECT_EQ_INT(LEPT_FALSE, lept_get_type(&v)); +} + static void test_parse_expect_value() { lept_value v; @@ -59,6 +73,8 @@ static void test_parse_root_not_singular() { static void test_parse() { test_parse_null(); + test_parse_true(); + test_parse_false(); test_parse_expect_value(); test_parse_invalid_value(); test_parse_root_not_singular(); diff --git a/tutorial02/leptjson.c b/tutorial02/leptjson.c index 7693e43b..baaeb9b8 100644 --- a/tutorial02/leptjson.c +++ b/tutorial02/leptjson.c @@ -1,9 +1,12 @@ #include "leptjson.h" #include /* assert() */ #include /* NULL, strtod() */ +#include +#include #define EXPECT(c, ch) do { assert(*c->json == (ch)); c->json++; } while(0) - +#define ISDIGIT1TO9(ch) ((ch) >= '1' && (ch) <= '9') +#define ISDIGIT(ch) ((ch) >= '0' && (ch) <= '9') typedef struct { const char* json; }lept_context; @@ -15,51 +18,56 @@ static void lept_parse_whitespace(lept_context* c) { c->json = p; } -static int lept_parse_true(lept_context* c, lept_value* v) { - EXPECT(c, 't'); - if (c->json[0] != 'r' || c->json[1] != 'u' || c->json[2] != 'e') - return LEPT_PARSE_INVALID_VALUE; - c->json += 3; - v->type = LEPT_TRUE; - return LEPT_PARSE_OK; -} - -static int lept_parse_false(lept_context* c, lept_value* v) { - EXPECT(c, 'f'); - if (c->json[0] != 'a' || c->json[1] != 'l' || c->json[2] != 's' || c->json[3] != 'e') - return LEPT_PARSE_INVALID_VALUE; - c->json += 4; - v->type = LEPT_FALSE; - return LEPT_PARSE_OK; -} - -static int lept_parse_null(lept_context* c, lept_value* v) { - EXPECT(c, 'n'); - if (c->json[0] != 'u' || c->json[1] != 'l' || c->json[2] != 'l') - return LEPT_PARSE_INVALID_VALUE; - c->json += 3; - v->type = LEPT_NULL; +static int lept_parse_litral(lept_context* c, lept_value* v, const char* literal, lept_type type) { + size_t i; /* in C, better to use size_t instead of int or unsigned for index and array's length */ + EXPECT(c, literal[0]); + for (i = 0; literal[i + 1]; i++){ + if (c->json[i] != literal[i + 1]){ + return LEPT_PARSE_INVALID_VALUE; + } + } + c->json += i; + v->type = type; return LEPT_PARSE_OK; } static int lept_parse_number(lept_context* c, lept_value* v) { - char* end; - /* \TODO validate number */ - v->n = strtod(c->json, &end); - if (c->json == end) - return LEPT_PARSE_INVALID_VALUE; - c->json = end; + const char* p = c->json; + /* validate number */ + if (*p == '-') p++; + if (*p == '0') p++; + else { + if (!ISDIGIT1TO9(*p)) return LEPT_PARSE_INVALID_VALUE; + for (p++; ISDIGIT(*p); p++); + } + if (*p == '.'){ + p++; + if (!ISDIGIT(*p)) return LEPT_PARSE_INVALID_VALUE; + for (p++; ISDIGIT(*p); p++); + } + if (*p == 'e' || *p == 'E'){ + p++; + if (*p == '-' || *p == '+') p++; + if (!ISDIGIT(*p)) return LEPT_PARSE_INVALID_VALUE; + for (p++; ISDIGIT(*p); p++); + } + errno = 0; + v->n = strtod(c->json, NULL); + if ((v->n == HUGE_VAL || v->n == -HUGE_VALL) && errno == ERANGE ){ + return LEPT_PARSE_NUMBER_TOO_BIG; + } v->type = LEPT_NUMBER; + c->json = p; return LEPT_PARSE_OK; } static int lept_parse_value(lept_context* c, lept_value* v) { switch (*c->json) { - case 't': return lept_parse_true(c, v); - case 'f': return lept_parse_false(c, v); - case 'n': return lept_parse_null(c, v); - default: return lept_parse_number(c, v); + case 't': return lept_parse_litral(c, v, "true", LEPT_TRUE); + case 'f': return lept_parse_litral(c, v, "false", LEPT_FALSE); + case 'n': return lept_parse_litral(c, v, "null", LEPT_NULL); case '\0': return LEPT_PARSE_EXPECT_VALUE; + default: return lept_parse_number(c, v); } } diff --git a/tutorial02/test.c b/tutorial02/test.c index 6e3ebed2..6d5f7af8 100644 --- a/tutorial02/test.c +++ b/tutorial02/test.c @@ -28,6 +28,13 @@ static void test_parse_null() { EXPECT_EQ_INT(LEPT_NULL, lept_get_type(&v)); } +static void test_parse_false() { + lept_value v; + v.type = LEPT_TRUE; + EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "false")); + EXPECT_EQ_INT(LEPT_FALSE, lept_get_type(&v)); +} + static void test_parse_true() { lept_value v; v.type = LEPT_FALSE; @@ -35,12 +42,6 @@ static void test_parse_true() { EXPECT_EQ_INT(LEPT_TRUE, lept_get_type(&v)); } -static void test_parse_false() { - lept_value v; - v.type = LEPT_TRUE; - EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "false")); - EXPECT_EQ_INT(LEPT_FALSE, lept_get_type(&v)); -} #define TEST_NUMBER(expect, json)\ do {\ @@ -70,6 +71,20 @@ static void test_parse_number() { TEST_NUMBER(1.234E+10, "1.234E+10"); TEST_NUMBER(1.234E-10, "1.234E-10"); TEST_NUMBER(0.0, "1e-10000"); /* must underflow */ + /* the smallest number > 1 */ + TEST_NUMBER(1.0000000000000002, "1.0000000000000002"); + /* minimum denormal */ + TEST_NUMBER( 4.9406564584124654e-324, "4.9406564584124654e-324"); + TEST_NUMBER(-4.9406564584124654e-324, "-4.9406564584124654e-324"); + /* Max subnormal double */ + TEST_NUMBER( 2.2250738585072009e-308, "2.2250738585072009e-308"); + TEST_NUMBER(-2.2250738585072009e-308, "-2.2250738585072009e-308"); + /* Min normal positive double */ + TEST_NUMBER( 2.2250738585072014e-308, "2.2250738585072014e-308"); + TEST_NUMBER(-2.2250738585072014e-308, "-2.2250738585072014e-308"); + /* Max double */ + TEST_NUMBER( 1.7976931348623157e+308, "1.7976931348623157e+308"); + TEST_NUMBER(-1.7976931348623157e+308, "-1.7976931348623157e+308"); } #define TEST_ERROR(error, json)\ @@ -89,7 +104,6 @@ static void test_parse_invalid_value() { TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "nul"); TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "?"); -#if 0 /* invalid number */ TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "+0"); TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "+1"); @@ -99,7 +113,6 @@ static void test_parse_invalid_value() { TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "inf"); TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "NAN"); TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "nan"); -#endif } static void test_parse_root_not_singular() { @@ -114,7 +127,7 @@ static void test_parse_root_not_singular() { } static void test_parse_number_too_big() { -#if 0 +#if 1 TEST_ERROR(LEPT_PARSE_NUMBER_TOO_BIG, "1e309"); TEST_ERROR(LEPT_PARSE_NUMBER_TOO_BIG, "-1e309"); #endif @@ -122,8 +135,8 @@ static void test_parse_number_too_big() { static void test_parse() { test_parse_null(); - test_parse_true(); test_parse_false(); + test_parse_true(); test_parse_number(); test_parse_expect_value(); test_parse_invalid_value(); diff --git a/tutorial03/leptjson.c b/tutorial03/leptjson.c index 07f7e2c7..dba7541e 100644 --- a/tutorial03/leptjson.c +++ b/tutorial03/leptjson.c @@ -99,11 +99,31 @@ static int lept_parse_string(lept_context* c, lept_value* v) { lept_set_string(v, (const char*)lept_context_pop(c, len), len); c->json = p; return LEPT_PARSE_OK; + case '\\': + switch (*p++) { + case '\"': PUTC(c, '\"'); break; + case '\\': PUTC(c, '\\'); break; + case '/': PUTC(c, '/'); break; + case 'b': PUTC(c, '\b'); break; + case 'f': PUTC(c, '\f'); break; + case 'n': PUTC(c, '\n'); break; + case 'r': PUTC(c, '\r'); break; + case 't': PUTC(c, '\t'); break; + default: + c->top = head; + return LEPT_PARSE_INVALID_STRING_ESCAPE; + } + break; case '\0': c->top = head; return LEPT_PARSE_MISS_QUOTATION_MARK; default: + if ((unsigned char)ch < 0x20){ + c->top = head; + return LEPT_PARSE_INVALID_STRING_CHAR; + } PUTC(c, ch); + } } } @@ -153,12 +173,13 @@ lept_type lept_get_type(const lept_value* v) { } int lept_get_boolean(const lept_value* v) { - /* \TODO */ - return 0; + assert(v != NULL && (v->type == LEPT_TRUE || v->type == LEPT_FALSE)); + return v->type == LEPT_TRUE; } void lept_set_boolean(lept_value* v, int b) { - /* \TODO */ + lept_free(v); + v->type = b ? LEPT_TRUE: LEPT_FALSE; } double lept_get_number(const lept_value* v) { @@ -167,7 +188,9 @@ double lept_get_number(const lept_value* v) { } void lept_set_number(lept_value* v, double n) { - /* \TODO */ + lept_free(v); + v->type = LEPT_NUMBER; + v->u.n = n; } const char* lept_get_string(const lept_value* v) { diff --git a/tutorial03/test.c b/tutorial03/test.c index ac788aca..f41f4761 100644 --- a/tutorial03/test.c +++ b/tutorial03/test.c @@ -107,7 +107,7 @@ static void test_parse_number() { static void test_parse_string() { TEST_STRING("", "\"\""); TEST_STRING("Hello", "\"Hello\""); -#if 0 +#if 1 TEST_STRING("Hello\nWorld", "\"Hello\\nWorld\""); TEST_STRING("\" \\ / \b \f \n \r \t", "\"\\\" \\\\ \\/ \\b \\f \\n \\r \\t\""); #endif @@ -163,7 +163,7 @@ static void test_parse_missing_quotation_mark() { } static void test_parse_invalid_string_escape() { -#if 0 +#if 1 TEST_ERROR(LEPT_PARSE_INVALID_STRING_ESCAPE, "\"\\v\""); TEST_ERROR(LEPT_PARSE_INVALID_STRING_ESCAPE, "\"\\'\""); TEST_ERROR(LEPT_PARSE_INVALID_STRING_ESCAPE, "\"\\0\""); @@ -172,7 +172,7 @@ static void test_parse_invalid_string_escape() { } static void test_parse_invalid_string_char() { -#if 0 +#if 1 TEST_ERROR(LEPT_PARSE_INVALID_STRING_CHAR, "\"\x01\""); TEST_ERROR(LEPT_PARSE_INVALID_STRING_CHAR, "\"\x1F\""); #endif @@ -188,12 +188,24 @@ static void test_access_null() { } static void test_access_boolean() { - /* \TODO */ /* Use EXPECT_TRUE() and EXPECT_FALSE() */ + lept_value v; + lept_init(&v); + lept_set_string(&v, "a", 1); + lept_set_boolean(&v, 1); + EXPECT_TRUE(lept_get_boolean(&v)); + lept_set_boolean(&v, 0); + EXPECT_FALSE(lept_get_boolean(&v)); + lept_free(&v); } static void test_access_number() { - /* \TODO */ + lept_value v; + lept_init(&v); + lept_set_string(&v, "a", 1); + lept_set_number(&v, 123.4); + EXPECT_EQ_DOUBLE(123.4, lept_get_number(&v)); + lept_free(&v); } static void test_access_string() { diff --git a/tutorial04/leptjson.c b/tutorial04/leptjson.c index 0a123bf2..f720a549 100644 --- a/tutorial04/leptjson.c +++ b/tutorial04/leptjson.c @@ -91,19 +91,43 @@ static int lept_parse_number(lept_context* c, lept_value* v) { } static const char* lept_parse_hex4(const char* p, unsigned* u) { - /* \TODO */ + int i; + *u = 0; + for (i = 0;i < 4; i++){ + char ch = *p++; + *u <<= 4; + if (ch >= '0' && ch <= '9') *u |= ch - '0'; + else if (ch >= 'A' && ch <= 'F') *u |= ch - ('A' - 10); + else if (ch >= 'a' && ch <= 'f') *u |= ch - ('a' - 10); + else return NULL; + } return p; } static void lept_encode_utf8(lept_context* c, unsigned u) { - /* \TODO */ + if (u <= 0x7F){ + PUTC(c, u & 0xFF); + } else if (u <= 0x7FF){ + PUTC(c, 0xC0 | ((u >> 6) & 0xFF)); + PUTC(c, 0x80 | ( u & 0x3F)); + } else if (u <= 0xFFFF){ + PUTC(c, 0xE0 | ((u >> 12) & 0xFF)); + PUTC(c, 0x80 | ((u >> 6) & 0x3F)); + PUTC(c, 0x80 | ((u ) & 0x3F)); + } else { + assert(u <= 0x10FFFF); + PUTC(c, 0xF0 | ((u >> 18) & 0xFF)); + PUTC(c, 0x80 | ((u >> 12) & 0x3F)); + PUTC(c, 0x80 | ((u >> 6) & 0x3F)); + PUTC(c, 0x80 | ((u ) & 0x3F)); + } } #define STRING_ERROR(ret) do { c->top = head; return ret; } while(0) static int lept_parse_string(lept_context* c, lept_value* v) { size_t head = c->top, len; - unsigned u; + unsigned u, u2; const char* p; EXPECT(c, '\"'); p = c->json; @@ -128,7 +152,17 @@ static int lept_parse_string(lept_context* c, lept_value* v) { case 'u': if (!(p = lept_parse_hex4(p, &u))) STRING_ERROR(LEPT_PARSE_INVALID_UNICODE_HEX); - /* \TODO surrogate handling */ + if (u >= 0xD800 && u <= 0xDBFF){ + if (*p++ != '\\') + STRING_ERROR(LEPT_PARSE_INVALID_UNICODE_SURROGATE); + if (*p++ != 'u') + STRING_ERROR(LEPT_PARSE_INVALID_UNICODE_SURROGATE); + if (!(p = lept_parse_hex4(p, &u2))) + STRING_ERROR(LEPT_PARSE_INVALID_UNICODE_HEX); + if (u2 < 0xDC00 || u2 > 0xDFFF) + STRING_ERROR(LEPT_PARSE_INVALID_UNICODE_SURROGATE); + u = (((u - 0xD800) << 10) | (u2 - 0xDC00)) + 0x10000; + } lept_encode_utf8(c, u); break; default: diff --git a/tutorial05/leptjson.c b/tutorial05/leptjson.c index d2c83f34..93ab2843 100644 --- a/tutorial05/leptjson.c +++ b/tutorial05/leptjson.c @@ -184,9 +184,10 @@ static int lept_parse_string(lept_context* c, lept_value* v) { static int lept_parse_value(lept_context* c, lept_value* v); static int lept_parse_array(lept_context* c, lept_value* v) { - size_t size = 0; + size_t i, size = 0; int ret; EXPECT(c, '['); + lept_parse_whitespace(c); if (*c->json == ']') { c->json++; v->type = LEPT_ARRAY; @@ -198,11 +199,14 @@ static int lept_parse_array(lept_context* c, lept_value* v) { lept_value e; lept_init(&e); if ((ret = lept_parse_value(c, &e)) != LEPT_PARSE_OK) - return ret; + break; memcpy(lept_context_push(c, sizeof(lept_value)), &e, sizeof(lept_value)); size++; - if (*c->json == ',') + lept_parse_whitespace(c); + if (*c->json == ','){ c->json++; + lept_parse_whitespace(c); + } else if (*c->json == ']') { c->json++; v->type = LEPT_ARRAY; @@ -211,9 +215,14 @@ static int lept_parse_array(lept_context* c, lept_value* v) { memcpy(v->u.a.e = (lept_value*)malloc(size), lept_context_pop(c, size), size); return LEPT_PARSE_OK; } - else - return LEPT_PARSE_MISS_COMMA_OR_SQUARE_BRACKET; + else{ + ret = LEPT_PARSE_MISS_COMMA_OR_SQUARE_BRACKET; + break; + } } + for (i = 0; i < size; i++) + lept_free((lept_value*)lept_context_pop(c, sizeof(lept_value))); + return ret; } static int lept_parse_value(lept_context* c, lept_value* v) { @@ -250,12 +259,25 @@ int lept_parse(lept_value* v, const char* json) { } void lept_free(lept_value* v) { + size_t i; + assert(v != NULL); - if (v->type == LEPT_STRING) - free(v->u.s.s); + switch (v->type) { + case LEPT_STRING: + free(v->u.s.s); + break; + case LEPT_ARRAY: + for (i = 0; i < v->u.a.size; i++) + lept_free(&v->u.a.e[i]); + free(v->u.a.e); + break; + default: + break; + } v->type = LEPT_NULL; } + lept_type lept_get_type(const lept_value* v) { assert(v != NULL); return v->type; diff --git a/tutorial05/test.c b/tutorial05/test.c index 2d4dd21e..7e5a89c4 100644 --- a/tutorial05/test.c +++ b/tutorial05/test.c @@ -129,12 +129,41 @@ static void test_parse_string() { static void test_parse_array() { lept_value v; - + size_t i, j; + lept_init(&v); EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "[ ]")); EXPECT_EQ_INT(LEPT_ARRAY, lept_get_type(&v)); EXPECT_EQ_SIZE_T(0, lept_get_array_size(&v)); lept_free(&v); + + /* cannot use a single macro to check test, use API to check seperately */ + lept_init(&v); + EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "[ null , false , true , 123 , \"abc\" ]")); + EXPECT_EQ_INT(LEPT_ARRAY, lept_get_type(&v)); + EXPECT_EQ_SIZE_T(5, lept_get_array_size(&v)); + EXPECT_EQ_INT(LEPT_NULL, lept_get_type(lept_get_array_element(&v, 0))); + EXPECT_EQ_INT(LEPT_FALSE, lept_get_type(lept_get_array_element(&v, 1))); + EXPECT_EQ_INT(LEPT_TRUE, lept_get_type(lept_get_array_element(&v, 2))); + EXPECT_EQ_INT(LEPT_NUMBER, lept_get_type(lept_get_array_element(&v, 3))); + EXPECT_EQ_INT(LEPT_STRING, lept_get_type(lept_get_array_element(&v, 4))); + EXPECT_EQ_DOUBLE(123.0, lept_get_number(lept_get_array_element(&v, 3))); + EXPECT_EQ_STRING("abc", lept_get_string(lept_get_array_element(&v, 4)), lept_get_string_length(lept_get_array_element(&v, 4))); + lept_free(&v); + + lept_init(&v); + EXPECT_EQ_INT(LEPT_PARSE_OK, lept_parse(&v, "[[], [0], [0, 1], [0, 1, 2]]")); + for (i = 0; i < lept_get_array_size(&v); i++) { + lept_value *inside_v = lept_get_array_element(&v, i); + EXPECT_EQ_INT(LEPT_ARRAY, lept_get_type(inside_v)); + EXPECT_EQ_SIZE_T(i, lept_get_array_size(inside_v)); + for (j = 0; j < i; j++) { + lept_value *ele = lept_get_array_element(inside_v, j); + EXPECT_EQ_INT(LEPT_NUMBER, lept_get_type(ele)); + EXPECT_EQ_DOUBLE((double)j, lept_get_number(ele)); + } + } + lept_free(&v); } #define TEST_ERROR(error, json)\ @@ -167,7 +196,7 @@ static void test_parse_invalid_value() { TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "nan"); /* invalid value in array */ -#if 0 +#if 1 TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "[1,]"); TEST_ERROR(LEPT_PARSE_INVALID_VALUE, "[\"a\", nul]"); #endif @@ -229,7 +258,7 @@ static void test_parse_invalid_unicode_surrogate() { } static void test_parse_miss_comma_or_square_bracket() { -#if 0 +#if 1 TEST_ERROR(LEPT_PARSE_MISS_COMMA_OR_SQUARE_BRACKET, "[1"); TEST_ERROR(LEPT_PARSE_MISS_COMMA_OR_SQUARE_BRACKET, "[1}"); TEST_ERROR(LEPT_PARSE_MISS_COMMA_OR_SQUARE_BRACKET, "[1 2"); diff --git a/tutorial06/leptjson.c b/tutorial06/leptjson.c index 64e3bd0d..63c12db6 100644 --- a/tutorial06/leptjson.c +++ b/tutorial06/leptjson.c @@ -127,8 +127,8 @@ static void lept_encode_utf8(lept_context* c, unsigned u) { #define STRING_ERROR(ret) do { c->top = head; return ret; } while(0) -static int lept_parse_string(lept_context* c, lept_value* v) { - size_t head = c->top, len; +static int lept_parse_string_raw(lept_context*c, char** str, size_t* len) { + size_t head = c->top; unsigned u, u2; const char* p; EXPECT(c, '\"'); @@ -137,8 +137,8 @@ static int lept_parse_string(lept_context* c, lept_value* v) { char ch = *p++; switch (ch) { case '\"': - len = c->top - head; - lept_set_string(v, (const char*)lept_context_pop(c, len), len); + *len = c->top - head; + *str = lept_context_pop(c, *len); c->json = p; return LEPT_PARSE_OK; case '\\': @@ -179,6 +179,16 @@ static int lept_parse_string(lept_context* c, lept_value* v) { PUTC(c, ch); } } + +} + +static int lept_parse_string(lept_context* c, lept_value* v) { + int ret; + char* s; + size_t len; + if ((ret = lept_parse_string_raw(c, &s, &len)) == LEPT_PARSE_OK) + lept_set_string(v, s, len); + return ret; } static int lept_parse_value(lept_context* c, lept_value* v); @@ -227,7 +237,7 @@ static int lept_parse_array(lept_context* c, lept_value* v) { } static int lept_parse_object(lept_context* c, lept_value* v) { - size_t size; + size_t size, i; lept_member m; int ret; EXPECT(c, '{'); @@ -242,9 +252,27 @@ static int lept_parse_object(lept_context* c, lept_value* v) { m.k = NULL; size = 0; for (;;) { + char* str; lept_init(&m.v); + lept_parse_whitespace(c); /* \todo parse key to m.k, m.klen */ + if(*c->json != '"'){ + ret = LEPT_PARSE_MISS_KEY; + break; + } + if((ret = lept_parse_string_raw(c, &str, &m.klen)) != LEPT_PARSE_OK) + break; + memcpy(m.k = (char* )malloc(m.klen + 1), str, m.klen); + m.k[m.klen] = '\0'; /* \todo parse ws colon ws */ + lept_parse_whitespace(c); + if (*c->json != ':') { + ret = LEPT_PARSE_MISS_COLON; + break; + } + c->json++; + lept_parse_whitespace(c); + /* parse value */ if ((ret = lept_parse_value(c, &m.v)) != LEPT_PARSE_OK) break; @@ -252,8 +280,33 @@ static int lept_parse_object(lept_context* c, lept_value* v) { size++; m.k = NULL; /* ownership is transferred to member on stack */ /* \todo parse ws [comma | right-curly-brace] ws */ + lept_parse_whitespace(c); + if (*c->json == ',') { + c->json++; + lept_parse_whitespace(c); + } + else if (*c->json == '}') { + size_t s = sizeof(lept_member) * size; + c->json++; + v->type = LEPT_OBJECT; + v->u.o.size = size; + memcpy(v->u.o.m = (lept_member*)malloc(s), lept_context_pop(c, s) , s); + return LEPT_PARSE_OK; + } + else { + ret = LEPT_PARSE_MISS_COMMA_OR_CURLY_BRACKET; + break; + } + } /* \todo Pop and free members on the stack */ + free(m.k); + for(i = 0; i < size; i++){ + lept_member* m = (lept_member*)lept_context_pop(c, sizeof(lept_member)); + free(m->k); + lept_free(&m->v); + } + v->type = LEPT_NULL; return ret; } @@ -303,6 +356,13 @@ void lept_free(lept_value* v) { lept_free(&v->u.a.e[i]); free(v->u.a.e); break; + case LEPT_OBJECT: + for (i = 0; i < v->u.o.size; i++){ + free(v->u.o.m[i].k); + lept_free(&v->u.o.m[i].v); + } + free(v->u.o.m); + break; default: break; } v->type = LEPT_NULL; diff --git a/tutorial06/test.c b/tutorial06/test.c index 8d332e45..75e3f082 100644 --- a/tutorial06/test.c +++ b/tutorial06/test.c @@ -352,7 +352,7 @@ static void test_parse() { test_parse_number(); test_parse_string(); test_parse_array(); -#if 0 +#if 1 test_parse_object(); #endif @@ -366,7 +366,7 @@ static void test_parse() { test_parse_invalid_unicode_hex(); test_parse_invalid_unicode_surrogate(); test_parse_miss_comma_or_square_bracket(); -#if 0 +#if 1 test_parse_miss_key(); test_parse_miss_colon(); test_parse_miss_comma_or_curly_bracket();