OSDN Git Service

HandBrake 0.7.0
[handbrake-jp/handbrake-jp-git.git] / Jamfile
1 # $Id: Jamfile,v 1.86 2005/11/04 13:09:40 titer Exp $
2 #
3 # This file is part of the HandBrake source code.
4 # Homepage: <http://handbrake.m0k.org/>.
5 # It may be used under the terms of the GNU General Public License.
6
7 SubDir TOP ;
8
9 # libhb + contrib libraries
10 HB_LIBS = libhb.a
11           contrib/lib/liba52.a        contrib/lib/libavcodec.a
12           contrib/lib/libavutil.a     contrib/lib/libdvdread.a
13           contrib/lib/libdvdcss.a     contrib/lib/libfaac.a
14           contrib/lib/libmp3lame.a    contrib/lib/libmp4v2.a
15           contrib/lib/libmpeg2.a      contrib/lib/libvorbis.a
16           contrib/lib/libvorbisenc.a  contrib/lib/libogg.a
17           contrib/lib/libsamplerate.a contrib/lib/libx264.a
18           contrib/lib/libxvidcore.a ;
19
20 # Interfaces
21 TEST_BIN = HBTest ;
22 TEST_SRC = test/test.c ;
23 BEOS_BIN = HandBrake ;
24 BEOS_SRC = beos/HBApp.cpp beos/MainWindow.cpp beos/ScanWindow.cpp
25            beos/PicWindow.cpp beos/Stepper.cpp beos/QueueWindow.cpp ;
26 WX_BIN   = wxHB ;
27 WX_SRC   = wx/hbWizard.cpp wx/wxHB.cpp ;
28 UI_BIN   = $(TEST_BIN) $(BEOS_BIN) $(WX_BIN) ;
29 UI_SRC   = $(TEST_SRC) $(BEOS_SRC) $(WX_SRC) ;
30
31 # CLI app
32 Main $(TEST_BIN) : $(TEST_SRC) ;
33
34 if $(OS) = BEOS
35 {
36     Main HandBrake : $(BEOS_SRC) ;
37
38     BeOSPackage HandBrake-$(HB_VERSION)-BeOS.zip : HandBrake ;
39     HB_PACKAGES += HandBrake-$(HB_VERSION)-BeOS.zip ;
40 }
41 if $(OS) = MACOSX
42 {
43     OSX_SRC = macosx/main.mm macosx/Controller.h macosx/Controller.mm
44               macosx/ScanController.h macosx/ScanController.mm
45               macosx/PictureController.h macosx/PictureController.mm
46               macosx/PictureGLView.h macosx/PictureGLView.mm
47               macosx/QueueController.h macosx/QueueController.mm
48               macosx/PrefsController.h macosx/PrefsController.m
49               macosx/English.lproj/InfoPlist.strings
50               macosx/English.lproj/MainMenu.nib/classes.nib
51               macosx/English.lproj/MainMenu.nib/info.nib
52               macosx/English.lproj/MainMenu.nib/keyedobjects.nib ;
53     OSXApp HandBrake.app : $(OSX_SRC) $(HB_LIBS) ;
54     
55     # Package
56     OSXPackage HandBrake-$(HB_VERSION)-OSX.zip : HandBrake.app ;
57     HB_PACKAGES += HandBrake-$(HB_VERSION)-OSX.zip ;
58 }
59 if $(OS) = LINUX
60 {
61     # WX UI outdated
62     #SystemLibraries $(WX_BIN) : -lpthread `wx-config --libs` ;
63     #ObjectC++Flags  $(WX_SRC) : `wx-config --cflags` ;
64     #Main            $(WX_BIN) : $(WX_SRC) ;
65 }
66
67 ObjectHdrs     $(UI_SRC) : $(TOP)/libhb ;
68 LinkLibraries  $(UI_BIN) : $(HB_LIBS) ;
69
70 # Packages
71 NotFile package ;
72 Depends package : $(HB_PACKAGES) ;
73
74 SubInclude TOP contrib ;
75 SubInclude TOP libhb ;
76