summaryrefslogtreecommitdiffstats
path: root/Jamfile
blob: 603ef155ade1c38128d759f9e23ffd55aa3657f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $Id: Jamfile,v 1.39 2004/02/18 17:21:00 titer Exp $
#
# This file is part of the HandBrake source code.
# Homepage: <http://handbrake.m0k.org/>.
# It may be used under the terms of the GNU General Public License.

SubDir TOP ;

HB_PACKAGES = ;

# CLI app
ObjectCcFlags test/test.c : -I$(TOP)/core -g -Wall ;
LinkLibraries HBTest :
    libhb.a liba52.a libavcodec.a libdvdplay.a libdvdread.a libdvdcss.a
    libfaac.a libmp3lame.a libmp4v2.a libmpeg2.a libvorbis.a
    libvorbisenc.a libogg.a libx264.a libxvidcore.a ;
Main HBTest : test/test.c ;

# BeOS
if $(OS) = BEOS
{
    SOURCES_BEOS = beos/HBApp.cpp beos/HBWindow.cpp ;
    ObjectC++Flags $(SOURCES_BEOS) :
        -I$(TOP)/core -I$(TOP)/beos/liblayout -g -Wall ;
    LINKLIBS on HandBrake = $(LINKLIBS) -L$(TOP)/lib -llayout -lbe ;
    LinkLibraries HandBrake :
        libhb.a liba52.a libavcodec.a libdvdplay.a libdvdread.a libdvdcss.a
        libfaac.a libmp3lame.a libmp4v2.a libmpeg2.a libvorbis.a
        libvorbisenc.a libogg.a libx264.a libxvidcore.a ;
    Main HandBrake : $(SOURCES_BEOS) ;
}

# OS X
if $(OS) = MACOSX
{
    # Build the app
    OSXApp HandBrake.app ;
    Depends HandBrake.app :
        libhb.a liba52.a libavcodec.a libdvdplay.a libdvdread.a
        libdvdcss.a libfaac.a libmp3lame.a libmp4v2.a libmpeg2.a
        libvorbis.a libvorbisenc.a libogg.a libx264.a libxvidcore.a ;
    Depends all : HandBrake.app ;
    
    # Package
    OSXPackage HandBrake-$(HB_VERSION)-OSX.zip ;
    Depends HandBrake-$(HB_VERSION)-OSX.zip : HandBrake.app ;
    HB_PACKAGES += HandBrake-$(HB_VERSION)-OSX.zip ;
}

# GTK2
if $(OS) = LINUX
{
    SOURCES_GTK2 = gtk2/main.c gtk2/callbacks.c gtk2/interface.c
                   gtk2/support.c ;
    ObjectCcFlags $(SOURCES_GTK2) :
        -I$(TOP)/core `pkg-config gtk+-2.0 --cflags` ;
    LINKLIBS on gtk2HB = $(LINKLIBS) `pkg-config gtk+-2.0 --libs` ;
    LinkLibraries gtk2HB :
        libhb.a liba52.a libavcodec.a libdvdplay.a libdvdread.a libdvdcss.a
        libfaac.a libmp3lame.a libmp4v2.a libmpeg2.a libvorbis.a
        libvorbisenc.a libogg.a libx264.a libxvidcore.a ;
    Main gtk2HB : $(SOURCES_GTK2) ;
}

# Packages
NotFile package ;
Depends package : $(HB_PACKAGES) ;

SubInclude TOP contrib ;
SubInclude TOP core ;