Xcode: Build fixes. Ignoring asn1c generated files.
authorDirk Zimmermann <dirk@pep-project.org>
Thu, 19 May 2016 19:22:47 +0200
changeset 6705a3d50d25168
parent 669 34d1bc5ebb64
child 671 951f465c41c1
Xcode: Build fixes. Ignoring asn1c generated files.
.hgignore
asn.1/Makefile
build-mac/README.md
build-mac/pEpEngine.xcodeproj/project.pbxproj
     1.1 --- a/.hgignore	Thu May 19 17:54:44 2016 +0200
     1.2 +++ b/.hgignore	Thu May 19 19:22:47 2016 +0200
     1.3 @@ -1,3 +1,8 @@
     1.4 +syntax: regexp
     1.5 +^asn\.1/.*\.(c|h)$
     1.6 +^asn\.1/Makefile\.am\.sample$
     1.7 +^asn\.1/libasn1\.a$
     1.8 +
     1.9  syntax: glob
    1.10  *.orig
    1.11  *.d
     2.1 --- a/asn.1/Makefile	Thu May 19 17:54:44 2016 +0200
     2.2 +++ b/asn.1/Makefile	Thu May 19 19:22:47 2016 +0200
     2.3 @@ -10,7 +10,7 @@
     2.4  	rm -f converter-sample.c
     2.5  
     2.6  %.o: %.c %.h
     2.7 -	$(CC) $(CFLAGS) $(OPTIMIZE) -I$(ASN1C_INCLUDE) -c $< -o $@
     2.8 +	$(CC) $(CFLAGS) $(OPTIMIZE) -I. -I$(ASN1C_INCLUDE) -c $< -o $@
     2.9  
    2.10  DeviceGroup-Protocol.c: devicegroup.asn1
    2.11  	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 $<
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/build-mac/README.md	Thu May 19 19:22:47 2016 +0200
     3.3 @@ -0,0 +1,15 @@
     3.4 +# Building for iOS
     3.5 +
     3.6 +This is done with Xcode. Simply add `pEpEngine.xcodeproj` to
     3.7 +your project and add a dependency to the target `pEpEngine`
     3.8 +(in `Target Dependencies` in your `Build Phases`.
     3.9 +
    3.10 +Usually you just integrate `pEpiOSAdapter.xcodeproj`.
    3.11 +
    3.12 +## Dependencies
    3.13 +
    3.14 +You need a working [asn1c](https://lionet.info/asn1c/blog/).
    3.15 +
    3.16 +```
    3.17 +brew install asn1c
    3.18 +```
     4.1 --- a/build-mac/pEpEngine.xcodeproj/project.pbxproj	Thu May 19 17:54:44 2016 +0200
     4.2 +++ b/build-mac/pEpEngine.xcodeproj/project.pbxproj	Thu May 19 19:22:47 2016 +0200
     4.3 @@ -677,7 +677,7 @@
     4.4  			);
     4.5  			runOnlyForDeploymentPostprocessing = 0;
     4.6  			shellPath = /bin/sh;
     4.7 -			shellScript = "mkdir -p \"$BUILT_PRODUCTS_DIR/include\"\n\ncp \"$SRCROOT/../src/\"{\\\npEpEngine.h,\\\ncryptotech.h,\\\nkeymanagement.h,\\\nmessage_api.h,\\\ndynamic_api.h,\\\nstringlist.h,\\\ntimestamp.h,\\\nidentity_list.h,\\\nbloblist.h,\\\nstringpair.h,\\\nmessage.h,\\\nmime.h} \"$BUILT_PRODUCTS_DIR/include\"\n";
     4.8 +			shellScript = "mkdir -p \"$BUILT_PRODUCTS_DIR/include\"\n\ncp \"$SRCROOT/../src/\"{\\\npEpEngine.h,\\\ncryptotech.h,\\\nkeymanagement.h,\\\nmessage_api.h,\\\ndynamic_api.h,\\\nstringlist.h,\\\ntimestamp.h,\\\nidentity_list.h,\\\nbloblist.h,\\\nstringpair.h,\\\nmessage.h,\\\nmime.h} \"$BUILT_PRODUCTS_DIR/include\"\n\npushd ../asn.1\nmake generate\nmake\npopd";
     4.9  		};
    4.10  /* End PBXShellScriptBuildPhase section */
    4.11  
    4.12 @@ -826,6 +826,7 @@
    4.13  					"$(SRCROOT)/../../netpgp-et/include/",
    4.14  					"$(SRCROOT)/../../netpgp-et/src/",
    4.15  					"$(SRCROOT)/../../netpgp-et/netpgp-xcode/openssl/include/",
    4.16 +					"$(SRCROOT)/../asn.1/",
    4.17  				);
    4.18  				MTL_ENABLE_DEBUG_INFO = YES;
    4.19  				ONLY_ACTIVE_ARCH = YES;
    4.20 @@ -869,6 +870,7 @@
    4.21  					"$(SRCROOT)/../../netpgp-et/include/",
    4.22  					"$(SRCROOT)/../../netpgp-et/src/",
    4.23  					"$(SRCROOT)/../../netpgp-et/netpgp-xcode/openssl/include/",
    4.24 +					"$(SRCROOT)/../asn.1/",
    4.25  				);
    4.26  				MTL_ENABLE_DEBUG_INFO = NO;
    4.27  				ONLY_ACTIVE_ARCH = NO;