Changeset 54f8fd2b8b3a86cbd99df45220352d0fd95b41d1
- Timestamp:
- 02/06/08 15:41:57
(5 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1202308917 +0000
- git-parent:
[ca2e14dc230e6b5b69adb65220eef4eab0d539e9]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1202308917 +0000
- Message:
macosx/framework: Use cmake because we can.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb3372f1 |
r54f8fd2 |
|
| 22 | 22 | |
|---|
| 23 | 23 | if test "${ACTION}" = "build"; then |
|---|
| 24 | | vlc_config="${VLC_SRC_DIR}/vlc-config" |
|---|
| 25 | 24 | lib="lib" |
|---|
| 26 | 25 | modules="modules" |
|---|
| … | … | |
| 75 | 74 | name=`basename ${linked_lib}` |
|---|
| 76 | 75 | case "${linked_lib}" in |
|---|
| 77 | | */vlc_install_dir/lib/* | */extras/contrib/lib/*) |
|---|
| | 76 | */vlc_build_dir/lib/* | *vlc* | */extras/contrib/lib/*) |
|---|
| 78 | 77 | if test -e ${linked_lib}; then |
|---|
| 79 | 78 | install_name_tool -change ${linked_lib} "${lib_install_prefix}/${name}" ${lib_dest} |
|---|
| … | … | |
| 93 | 92 | |
|---|
| 94 | 93 | ########################## |
|---|
| | 94 | # Hack for VLC-release.app |
|---|
| | 95 | if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then |
|---|
| | 96 | install_library "${VLC_BUILD_DIR}/${prefix}vlc" "${target}" "bin" "@loader_path/lib" |
|---|
| | 97 | prefix=".libs/" |
|---|
| | 98 | else |
|---|
| | 99 | prefix="" |
|---|
| | 100 | fi |
|---|
| | 101 | |
|---|
| | 102 | ########################## |
|---|
| 95 | 103 | # Build the modules folder (Same as VLCKit.framework/modules in Makefile) |
|---|
| 96 | 104 | echo "Building modules folder..." |
|---|
| 97 | 105 | # Figure out what modules are available to install |
|---|
| 98 | | for module in `top_builddir="${VLC_BUILD_DIR}" ${vlc_config} --target plugin` ; do |
|---|
| | 106 | for module in `find ${VLC_BUILD_DIR}/modules -name *.so` ; do |
|---|
| 99 | 107 | # Check to see that the reported module actually exists |
|---|
| 100 | 108 | if test -n ${module}; then |
|---|
| 101 | | module_src="`dirname ${module}`/.libs/`basename ${module}`.dylib" |
|---|
| 102 | | install_library ${module_src} ${target_modules} "module" |
|---|
| | 109 | install_library ${module} ${target_modules} "module" |
|---|
| 103 | 110 | fi |
|---|
| 104 | 111 | done |
|---|
| … | … | |
| 123 | 130 | ########################## |
|---|
| 124 | 131 | # Build the library folder |
|---|
| 125 | | echo "Building library folder..." |
|---|
| | 132 | echo "Building library folder... ${linked_libs}" |
|---|
| 126 | 133 | for linked_lib in ${linked_libs} ; do |
|---|
| 127 | 134 | case "${linked_lib}" in |
|---|
| … | … | |
| 139 | 146 | done |
|---|
| 140 | 147 | |
|---|
| 141 | | install_library "${VLC_BUILD_DIR}/src/.libs/libvlc-control.dylib" ${target_lib} "library" |
|---|
| 142 | | install_library "${VLC_BUILD_DIR}/src/.libs/libvlc.dylib" ${target_lib} "library" |
|---|
| 143 | 148 | |
|---|
| 144 | | ########################## |
|---|
| 145 | | # Hack for VLC-release.app |
|---|
| 146 | | if [ "$FULL_PRODUCT_NAME" = "VLC-release.app" ] ; then |
|---|
| 147 | | install_library "${VLC_BUILD_DIR}/.libs/vlc" "${target}" "bin" "@loader_path/lib" |
|---|
| 148 | | fi |
|---|
| | 149 | install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc-control.dylib" ${target_lib} "library" |
|---|
| | 150 | install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library" |
|---|
| 149 | 151 | |
|---|
| 150 | 152 | ########################## |
|---|
| … | … | |
| 153 | 155 | pbxcp="/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks" |
|---|
| 154 | 156 | mkdir -p ${target_share} |
|---|
| 155 | | $pbxcp ${VLC_BUILD_DIR}/share/luameta ${target_share} |
|---|
| 156 | | $pbxcp ${VLC_BUILD_DIR}/share/luaplaylist ${target_share} |
|---|
| | 157 | $pbxcp ${VLC_SRC_DIR}/share/luameta ${target_share} |
|---|
| | 158 | $pbxcp ${VLC_SRC_DIR}/share/luaplaylist ${target_share} |
|---|
| 157 | 159 | fi |
|---|
| rdb56787 |
r54f8fd2 |
|
| 353 | 353 | ); |
|---|
| 354 | 354 | buildToolPath = /usr/bin/make; |
|---|
| 355 | | buildWorkingDirectory = ../../..; |
|---|
| | 355 | buildWorkingDirectory = "$(SYMROOT)/vlc_build_dir"; |
|---|
| 356 | 356 | dependencies = ( |
|---|
| 357 | 357 | ); |
|---|
| … | … | |
| 454 | 454 | inputPaths = ( |
|---|
| 455 | 455 | $SRCROOT/../../../bootstrap, |
|---|
| 456 | | $SRCROOT/../../../configure.ac, |
|---|
| | 456 | $SRCROOT/../../../CMakeLists.txt, |
|---|
| 457 | 457 | ); |
|---|
| 458 | 458 | outputPaths = ( |
|---|
| 459 | | $SRCROOT/../../../configure, |
|---|
| 460 | 459 | ); |
|---|
| 461 | 460 | runOnlyForDeploymentPostprocessing = 0; |
|---|
| 462 | 461 | shellPath = /bin/sh; |
|---|
| 463 | | shellScript = "if test $ACTION = \"clean\"\nthen\n exit 0\nfi\ncd ../../.. && ./bootstrap && ./configure --enable-debug --disable-nls\n"; |
|---|
| | 462 | shellScript = "if test $ACTION = \"clean\"\nthen\n exit 0\nfi\ntop_srcdir=`pwd`/../../..\nmkdir -p $SYMROOT/vlc_build_dir\nrm -Rf $top_srcdir/CMakeCache.txt\ncd $SYMROOT/vlc_build_dir && cmake $top_srcdir"; |
|---|
| 464 | 463 | showEnvVarsInLog = 0; |
|---|
| 465 | 464 | }; |
|---|
| … | … | |
| 566 | 565 | PRODUCT_NAME = VLCKit; |
|---|
| 567 | 566 | SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = YES; |
|---|
| 568 | | VLC_BUILD_DIR = "$(VLC_SRC_DIR)"; |
|---|
| | 567 | VLC_BUILD_DIR = "$(SYMROOT)/vlc_build_dir"; |
|---|
| 569 | 568 | VLC_FRAMEWORK = "$(TARGET_BUILD_DIR)/$(PROJECT_NAME).framework"; |
|---|
| 570 | 569 | VLC_SRC_DIR = ../../..; |
|---|