sys.path.insert(0, parentdir) import ced_py_utils gtest_binaries_dir = os.path.abspath(os.getcwd() + '/../../binaries_gtest') gtest_include_dir = os.path.abspath(os.getcwd() + '/cedrus_build_gtest/gtest-1.7.0/include') # this next path is INTENTIONALLY a relative path. (not absolute path) relpath_to_reach_gtest_src_from_our_output_dir = '../build_oss_deps/mac/cedrus_build_gtest/gtest-1.7.0/' # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(gtest_binaries_dir + os.path.sep + relpath_to_reach_gtest_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(gtest_binaries_dir) ced_py_utils.enforce_dir_exists(gtest_include_dir) conf_cmd = relpath_to_reach_gtest_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += str(' CXX="clang++ -std=c++11 -stdlib=libc++" ' + ' LDFLAGS="-stdlib=libc++" LINKFLAGS="-stdlib=libc++" ' + ' LINKERFLAGS="-stdlib=libc++" DYLDFLAGS="-stdlib=libc++" ') # note that we are SETTING CWD TO THE OUTPUT directory before running 'configure'. # (in other words, we are NOT running configure from the dir where configure resides.) # This causes all the build artifacts from running configure and make to go into the OUTPUT (binaries) dir. ced_py_utils.exec_command_using_given_cwd(conf_cmd, gtest_binaries_dir) ced_py_utils.exec_command_using_given_cwd('make', gtest_binaries_dir)
parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) import ced_py_utils boost_src_dir = os.path.abspath(os.getcwd() + "/../../boost_github") boost_binaries_dir = os.path.abspath(os.getcwd() + "/../../binaries_boost") cedrus_build_script = os.path.abspath(os.getcwd() + "/cedrus_build_boost/cedrus_build_boost.sh") cedrus_boost_patch = os.path.abspath(os.getcwd() + "/cedrus_build_boost/patch_submodule_tools_build_1_58.patch") # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(boost_src_dir) ced_py_utils.enforce_dir_exists(boost_binaries_dir) # ---------- Begin 2nd section: make sure SUBMODULES inside boost were populated!! ------- # Note: this list of submodules is NOT exhaustive! please populate ALL SUBMODULES. # if anything in this section fails, you need to: # 1. go into the boost_src_dir directory. # 2. run the command: git submodule init # 3. run the command: git submodule update --init submod_msg = "If this fails, you need to GO INTO YOUR checked-out boost.org repo and do: {git submodule update --init}" ced_py_utils.enforce_dir_exists(boost_src_dir + "/libs/asio/include", submod_msg) ced_py_utils.enforce_dir_exists(boost_src_dir + "/libs/lambda/include", submod_msg) ced_py_utils.enforce_dir_exists(boost_src_dir + "/libs/function/include", submod_msg)
import ced_py_utils boost_src_dir = os.path.abspath(os.getcwd() + '/../../boost_github') boost_binaries_dir = os.path.abspath(os.getcwd() + '/../../binaries_boost') cedrus_build_script = os.path.abspath( os.getcwd() + '/cedrus_build_boost/cedrus_build_boost.sh') cedrus_boost_patch = os.path.abspath( os.getcwd() + '/cedrus_build_boost/patch_submodule_tools_build_1_58.patch') # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(boost_src_dir) ced_py_utils.enforce_dir_exists(boost_binaries_dir) # ---------- Begin 2nd section: make sure SUBMODULES inside boost were populated!! ------- # Note: this list of submodules is NOT exhaustive! please populate ALL SUBMODULES. # if anything in this section fails, you need to: # 1. go into the boost_src_dir directory. # 2. run the command: git submodule init # 3. run the command: git submodule update --init submod_msg = 'If this fails, you need to GO INTO YOUR checked-out boost.org repo and do: {git submodule update --init}' ced_py_utils.enforce_dir_exists(boost_src_dir + '/libs/asio/include', submod_msg) ced_py_utils.enforce_dir_exists(boost_src_dir + '/libs/lambda/include',
sys.path.insert(0, parentdir) import ced_py_utils gtest_binaries_dir = os.path.abspath(os.getcwd() + '/../../binaries_gtest') gtest_include_dir = os.path.abspath( os.getcwd() + '/cedrus_build_gtest/gtest-1.7.0/include') # this next path is INTENTIONALLY a relative path. (not absolute path) relpath_to_reach_gtest_src_from_our_output_dir = '../build_oss_deps/mac/cedrus_build_gtest/gtest-1.7.0/' # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(gtest_binaries_dir + os.path.sep + relpath_to_reach_gtest_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(gtest_binaries_dir) ced_py_utils.enforce_dir_exists(gtest_include_dir) conf_cmd = relpath_to_reach_gtest_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += str(' CXX="clang++ -std=c++11 -stdlib=libc++" ' + ' LDFLAGS="-stdlib=libc++" LINKFLAGS="-stdlib=libc++" ' + ' LINKERFLAGS="-stdlib=libc++" DYLDFLAGS="-stdlib=libc++" ') # note that we are SETTING CWD TO THE OUTPUT directory before running 'configure'. # (in other words, we are NOT running configure from the dir where configure resides.) # This causes all the build artifacts from running configure and make to go into the OUTPUT (binaries) dir. ced_py_utils.exec_command_using_given_cwd(conf_cmd, gtest_binaries_dir) ced_py_utils.exec_command_using_given_cwd('make', gtest_binaries_dir)
import ced_py_utils portaudio_binaries_dir = os.path.abspath( os.getcwd() + '/../../binaries_snd_and_paudio') portaudio_conf_tmp_dir = portaudio_binaries_dir + os.path.sep + 'tmp' + os.path.sep + 'portaudio' # this next path is INTENTIONALLY a relative path. (not absolute path) relpath_to_reach_portaudio_src_from_our_output_dir = '../../../build_oss_deps/mac/cedrus_build_snd_and_paudio/pa_stable_v19_20110326/' # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists( portaudio_conf_tmp_dir + os.path.sep + relpath_to_reach_portaudio_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(portaudio_binaries_dir) conf_cmd = relpath_to_reach_portaudio_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += ' CC="clang -v -Wno-deprecated-declarations -Wno-newline-eof" ' conf_cmd += ' CXX=clang++ ' conf_cmd += ' LDFLAGS="-stdlib=libc++ -mmacosx-version-min=10.7 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' CXXFLAGS="-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' CFLAGS="-mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' CPPFLAGS="-mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' --enable-shared --disable-static ' prefix_dir = portaudio_binaries_dir + os.path.sep + 'tmp'
import ced_py_utils portaudio_binaries_dir = os.path.abspath(os.getcwd() + '/../../binaries_snd_and_paudio') portaudio_conf_tmp_dir = portaudio_binaries_dir + os.path.sep + 'tmp' + os.path.sep + 'portaudio' # this next path is INTENTIONALLY a relative path. (not absolute path) relpath_to_reach_portaudio_src_from_our_output_dir = '../../../build_oss_deps/mac/cedrus_build_snd_and_paudio/pa_stable_v190600_20161030/' # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists( portaudio_conf_tmp_dir + os.path.sep + relpath_to_reach_portaudio_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(portaudio_binaries_dir) conf_cmd = relpath_to_reach_portaudio_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += ' CC="clang -v -Wno-deprecated-declarations -Wno-newline-eof" ' conf_cmd += ' CXX=clang++ ' conf_cmd += ' LDFLAGS="-stdlib=libc++ -mmacosx-version-min=10.11 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' CXXFLAGS="-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.11 -DMAC_OS_X_VERSION_MIN_REQUIRED=101100 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' CFLAGS="-mmacosx-version-min=10.11 -DMAC_OS_X_VERSION_MIN_REQUIRED=101100 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' CPPFLAGS="-mmacosx-version-min=10.11 -DMAC_OS_X_VERSION_MIN_REQUIRED=101100 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' --enable-shared --disable-static ' prefix_dir = portaudio_binaries_dir + os.path.sep + 'tmp'
cedrus_build_script = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_build_wx.sh') cedrus_dylib_script = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_wx_mach-o_dylib_fixer.sh') cedrus_wx_patch = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_patch_for_wx_v3.0.2.patch') cedrus_wx_patch2 = os.path.abspath( os.getcwd() + '/cedrus_build_wx/fix_from_http_trac.wxwidgets.org_changeset_78144.patch') cedrus_wx_patch3 = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_patch_for_less_wxStackWalker.patch') # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(wx_src_dir) ced_py_utils.enforce_dir_exists(binaries_wx_dir) # Second section: begin actual work towards building wx binaries ced_py_utils.git_repo_checkout_revision(wx_src_dir, '2d853161ef87fe623') shutil.copy2(cedrus_build_script, wx_src_dir) shutil.copy2(cedrus_dylib_script, wx_src_dir) shutil.copy2(cedrus_wx_patch, wx_src_dir) shutil.copy2(cedrus_wx_patch2, wx_src_dir) shutil.copy2(cedrus_wx_patch3, wx_src_dir) # if applying the patch FAILS, it could just mean that you already applied it. reset to a clean revision and try again. ced_py_utils.git_repo_apply_patch(wx_src_dir, 'cedrus_patch_for_wx_v3.0.2.patch')
vorbis_inc_dir = os.path.abspath( os.getcwd() + '/cedrus_build_snd_and_paudio/flac_ogg_vorbis_from_homebrew/libvorbis/1.3.6/include' ) vorbis_lib_dir = os.path.abspath( os.getcwd() + '/cedrus_build_snd_and_paudio/flac_ogg_vorbis_from_homebrew/libvorbis/1.3.6/lib' ) # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() #ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists( sndfile_conf_tmp_dir + os.path.sep + relpath_to_reach_sndfile_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(sndfile_binaries_dir) ced_py_utils.enforce_dir_exists(flac_inc_dir) ced_py_utils.enforce_dir_exists(flac_lib_dir) ced_py_utils.enforce_dir_exists(ogg_inc_dir) ced_py_utils.enforce_dir_exists(ogg_lib_dir) ced_py_utils.enforce_dir_exists(vorbis_inc_dir) ced_py_utils.enforce_dir_exists(vorbis_lib_dir) conf_cmd = relpath_to_reach_sndfile_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += ' CC="clang -v" ' conf_cmd += ' CXX=clang++ ' conf_cmd += ' LDFLAGS="-stdlib=libc++ -mmacosx-version-min=10.11 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' CXXFLAGS="-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.11 -DMAC_OS_X_VERSION_MIN_REQUIRED=101100 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" ' conf_cmd += ' CFLAGS="-mmacosx-version-min=10.11 -DMAC_OS_X_VERSION_MIN_REQUIRED=101100 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk" '
cedrus_build_script = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_build_wx.sh') cedrus_dylib_script = os.path.abspath( os.getcwd() + '/cedrus_build_wx/cedrus_wx_mach-o_dylib_fixer.sh') #cedrus_wx_patch = os.path.abspath( # os.getcwd() + '/cedrus_build_wx/cedrus_patch_for_wx_v3.0.2.patch') #cedrus_wx_patch2 = os.path.abspath( # os.getcwd() + '/cedrus_build_wx/fix_from_http_trac.wxwidgets.org_changeset_78144.patch') #cedrus_wx_patch3 = os.path.abspath( # os.getcwd() + '/cedrus_build_wx/cedrus_patch_for_less_wxStackWalker.patch') # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists(wx_src_dir) ced_py_utils.enforce_dir_exists(binaries_wx_dir) # Second section: begin actual work towards building wx binaries ced_py_utils.git_repo_checkout_revision(wx_src_dir, 'f5977dee2123a342601250b9a87bc2549c13cdd0') shutil.copy2(cedrus_build_script, wx_src_dir) shutil.copy2(cedrus_dylib_script, wx_src_dir) #shutil.copy2(cedrus_wx_patch, wx_src_dir) #shutil.copy2(cedrus_wx_patch2, wx_src_dir) #shutil.copy2(cedrus_wx_patch3, wx_src_dir) # if applying the patch FAILS, it could just mean that you already applied it. reset to a clean revision and try again. #ced_py_utils.git_repo_apply_patch(wx_src_dir, # 'cedrus_patch_for_wx_v3.0.2.patch')
os.getcwd() + '/cedrus_build_snd_and_paudio/flac_ogg_vorbis_from_homebrew/libogg/1.3.2/lib') vorbis_inc_dir = os.path.abspath( os.getcwd() + '/cedrus_build_snd_and_paudio/flac_ogg_vorbis_from_homebrew/libvorbis/1.3.5/include') vorbis_lib_dir = os.path.abspath( os.getcwd() + '/cedrus_build_snd_and_paudio/flac_ogg_vorbis_from_homebrew/libvorbis/1.3.5/lib') # First section: do a bunch of sanity-checking ced_py_utils.verify_that_CWD_is_the_enclosing_folder_of_this_script() ced_py_utils.verify_absence_of_fink() ced_py_utils.verify_absence_of_homebrew() ced_py_utils.enforce_dir_exists( sndfile_conf_tmp_dir + os.path.sep + relpath_to_reach_sndfile_src_from_our_output_dir) ced_py_utils.enforce_dir_exists(sndfile_binaries_dir) ced_py_utils.enforce_dir_exists(flac_inc_dir) ced_py_utils.enforce_dir_exists(flac_lib_dir) ced_py_utils.enforce_dir_exists(ogg_inc_dir) ced_py_utils.enforce_dir_exists(ogg_lib_dir) ced_py_utils.enforce_dir_exists(vorbis_inc_dir) ced_py_utils.enforce_dir_exists(vorbis_lib_dir) conf_cmd = relpath_to_reach_sndfile_src_from_our_output_dir + os.path.sep + 'configure ' conf_cmd += ' CC="clang -v" ' conf_cmd += ' CXX=clang++ ' conf_cmd += ' LDFLAGS="-stdlib=libc++ -mmacosx-version-min=10.7 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' CXXFLAGS="-std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" ' conf_cmd += ' CFLAGS="-mmacosx-version-min=10.7 -DMAC_OS_X_VERSION_MIN_REQUIRED=1070 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" '