Skip to content

Commit

Permalink
Merge cdfb218 into e53179a
Browse files Browse the repository at this point in the history
  • Loading branch information
um68 committed Feb 19, 2015
2 parents e53179a + cdfb218 commit 3b5daa3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 17 deletions.
10 changes: 6 additions & 4 deletions bru_common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# To build config Debug it with msbuild run:
# >msbuild *.sln /p:Configuration=Debug
"default_configuration": "Release",

# List two configs: Debug & Release:
"configurations": {
"Debug": {
Expand Down Expand Up @@ -68,8 +67,9 @@
},
},
"xcode_settings": {
"GCC_OPTIMIZATION_LEVEL ": "0", #stop gyp from defaulting to - Os
"CONFIGURATION_BUILD_DIR" : "../../lib/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)"
"GCC_OPTIMIZATION_LEVEL " : "0", #stop gyp from defaulting to - Os
"CONFIGURATION_BUILD_DIR" : "../../bru_modules/lib/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
"OBJROOT" : "bru_build"
},
},
"Release": {
Expand Down Expand Up @@ -123,7 +123,9 @@
}
},
"xcode_settings": {
"CONFIGURATION_BUILD_DIR" : "../../lib/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)"
"CONFIGURATION_BUILD_DIR" : "../../bru_modules/lib/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)",
"OBJROOT" : "bru_build"

},
"VCLibrarianTool": {
"AdditionalOptions": [
Expand Down
34 changes: 23 additions & 11 deletions brulib/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,27 @@ def cmd_make_ios(gyp_filename, config, verbose):
print("running '{}'".format(xcode_cmdline))
returncode = os.system(xcode_cmdline)
if returncode != 0:
raise Exception('Build failed: make for simulator returned', returncode)
mkdir_cmdline = 'mkdir lib/{}-Universial'.format(config)
returncode = os.system(mkdir_cmdline)
filepattern = './lib/{}-iphoneos/lib*.a'.format(config)
for file in glob.glob(filepattern):
name = os.path.basename(os.path.normpath(file))
command = 'lipo -create lib/{}-iphoneos/{} lib/{}-iphonesimulator/{} -output lib/{}-Universial/{}'.format(config,name,config,name,config,name)
print("running '{}'".format(command))
returncode = os.system(command)
if returncode != 0:
raise Exception('Build failed: lipo returned', returncode)
raise Exception('Build failed: make for simulator returned', returncode)
if os.path.exists("./lib"):
mkdir_cmdline = 'mkdir lib/{}-Universial'.format(config)
returncode = os.system(mkdir_cmdline)
filepattern = './lib/{}-iphoneos/lib*.a'.format(config)
for file in glob.glob(filepattern):
name = os.path.basename(os.path.normpath(file))
command = 'lipo -create lib/{}-iphoneos/{} lib/{}-iphonesimulator/{} -output lib/{}-Universial/{}'.format(config,name,config,name,config,name)
print("running '{}'".format(command))
returncode = os.system(command)
if returncode != 0:
raise Exception('Build failed: lipo returned', returncode)
if os.path.exists("./bru_modules/lib"):
mkdir_cmdline = 'mkdir bru_modules/lib/{}-Universial'.format(config)
returncode = os.system(mkdir_cmdline)
filepattern = './bru_modules/lib/{}-iphoneos/lib*.a'.format(config)
for file in glob.glob(filepattern):
name = os.path.basename(os.path.normpath(file))
command = 'lipo -create bru_modules/lib/{}-iphoneos/{} bru_modules/lib/{}-iphonesimulator/{} -output bru_modules/lib/{}-Universial/{}'.format(config,name,config,name,config,name)
print("running '{}'".format(command))
returncode = os.system(command)
if returncode != 0:
raise Exception('Build failed: lipo returned', returncode)
print('Build complete.')
4 changes: 2 additions & 2 deletions library/openssl/1.0.1j.bru
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# compile with gyp. WARNING: the gyp file will not necessarily end up using
# the same options ./configure had configured. TODO: revisit this process.
"make_command": {
"Linux" : "cd openssl-1.0.1j; ./config no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib no-threads",
"Linux" : "cd openssl-1.0.1j; ./config no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib no-threads",
"Darwin": "cd openssl-1.0.1j; ./Configure darwin64-x86_64-cc no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib no-threads -Wno-c++11-narrowing -stdlib=libc++ -fvisibility=hidden ",
"iOS" : "cd openssl-1.0.1j; ./Configure iphoneos-cross no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib no-threads -Wno-c++11-narrowing -stdlib=libc++ -fvisibility=hidden",
"iOS" : "cd openssl-1.0.1j; ./Configure iphoneos-cross no-asm no-shared no-ssl2 no-ssl3 no-hw no-zlib -Wno-c++11-narrowing -stdlib=libc++ -fvisibility=hidden",
# Why no-asm? Because otherwise you need to install yet another
# buildtool for compiling openssl (see INSTALL.W32). I'm not sure
# how much performance we sacrifice by not using asm, hopefully
Expand Down
10 changes: 10 additions & 0 deletions library/rcf/2.0.1.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@
"WIN32_LEAN_AND_MEAN",
"_WIN32_WINNT=0x0500" # >= XP? or win 2000?
]
}],
["OS=='mac'", {
"defines": [
"RCF_OPENSSL_STATIC"
]
}],
["OS=='iOS'", {
"defines": [
"RCF_OPENSSL_STATIC"
]
}]
],
"dependencies": [
Expand Down
Binary file modified library/rcf/RCF-2.0.1.101-config.tar.gz
Binary file not shown.

0 comments on commit 3b5daa3

Please sign in to comment.