diff options
author | handbrake <[email protected]> | 2006-01-14 13:05:49 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 13:05:49 +0000 |
commit | 5824c4979fbc54ae3d3015c07cbf6fa4aea7516d (patch) | |
tree | 49ba3bbe1f8d8166fa4f7f964055d4011d2deca0 /Jamfile | |
parent | f013e3544c0bdf17348d617a467af0e4fde0f545 (diff) |
HandBrake 0.5
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'Jamfile')
-rw-r--r-- | Jamfile | 53 |
1 files changed, 35 insertions, 18 deletions
@@ -1,16 +1,20 @@ -# $Id: Jamfile,v 1.41 2003/10/16 13:46:32 titer Exp $ +# $Id: Jamfile,v 1.5 2003/11/07 22:28:30 titer Exp $ # # This file is part of the HandBrake source code. -# Homepage: <http://beos.titer.org/handbrake/>. +# Homepage: <http://handbrake.m0k.org/>. # It may be used under the terms of the GNU General Public License. -HB_VERSION = 0.4.1 ; +HB_VERSION = 0.5 ; # Compilers +CC = gcc ; C++ = g++ ; -LINK = g++ ; +LINK = gcc ; # Flags +CCFLAGS = $(CFLAGS) ; +CCFLAGS += -g -Wall -Werror ; +CCFLAGS += -DVERSION=\\\"$(HB_VERSION)\\\" -DSYS_$(OS) ; C++FLAGS = $(CPPFLAGS) ; C++FLAGS += -g -Wall -Werror ; C++FLAGS += -DVERSION=\\\"$(HB_VERSION)\\\" -DSYS_$(OS) ; @@ -18,15 +22,18 @@ LINKFLAGS = $(LDFLAGS) ; HDRS = core ; # Optims +CCFLAGS += -funroll-loops ; C++FLAGS += -funroll-loops ; OPTIM = -O3 ; # Libs -LINKLIBS = -ldvdplay -ldvdread -ldvdcss -lmpeg2 -lavcodec -la52 -lmp3lame ; +LINKLIBS = -ldvdplay -ldvdread -ldvdcss -lmpeg2 -lavcodec -la52 + -lmp3lame -lxvidcore ; # OS specific if $(OS) = BEOS { + CCFLAGS += -Wno-multichar ; C++FLAGS += -Wno-multichar ; LINKLIBS += -lbe -ltracker ; } @@ -36,9 +43,19 @@ else if $(OS) = LINUX } else if $(OS) = MACOSX { + CCFLAGS += -no-cpp-precomp ; + C++FLAGS += -no-cpp-precomp ; + LINKFLAGS += -multiply_defined suppress ; + # needed to clean HandBrake.app RM = rm -rf ; } +else if $(OS) = CYGWIN +{ + CCFLAGS += -mno-cygwin ; + C++FLAGS += -mno-cygwin ; + LINKFLAGS += -mno-cygwin ; +} # Do not remove temporary object files # There MUST be a cleaner way to do this @@ -46,36 +63,36 @@ actions quietly updated piecemeal together RmTemps { } -# Build HandBrake.app using ProjectBuilder +# Build HandBrake.app using Xcode rule OSXApp { - Clean clean : $(1) ; + Clean clean : $(1) macosx/build ; BuildOSXApp $(1) ; } actions BuildOSXApp { $(RM) HandBrake.app ; - ( cd macosx && pbxbuild ) && mv macosx/build/HandBrake.app . ; - $(RM) macosx/build ; + ( cd macosx && xcodebuild ) && cp -r macosx/build/HandBrake.app . ; } -Library core/libhb : core/Ac3Decoder.cpp core/AviMuxer.cpp - core/Common.cpp core/DVDReader.cpp core/Fifo.cpp - core/Manager.cpp core/Mp3Encoder.cpp - core/Mpeg2Decoder.cpp core/Mpeg4Encoder.cpp - core/MpegDemux.cpp core/Resizer.cpp - core/Scanner.cpp core/Thread.cpp core/Worker.cpp ; +Library core/libhb : core/Ac3Dec.c core/AviMux.c + core/Utils.c core/DVDRead.c core/Fifo.c + core/HandBrake.c core/Mp3Enc.c + core/Mpeg2Dec.c core/FfmpegEnc.c + core/MadDec.c core/Scale.c + core/Scan.c core/Thread.c core/Work.c + core/XvidEnc.c ; LinkLibraries HBTest : core/libhb.a ; -Main HBTest : test/Test.cpp ; +Main HBTest : test/test.c ; if $(OS) = BEOS { LinkLibraries HandBrake : core/libhb.a ; - Main HandBrake : beos/HandBrake.cpp beos/MainWindow.cpp + Main HandBrake : beos/HBApp.cpp beos/MainWindow.cpp beos/PictureWin.cpp beos/ScanView.cpp - beos/RipView.cpp ; + beos/RipView.cpp ; } if $(OS) = MACOSX |