-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.scm
19 lines (13 loc) · 1.17 KB
/
build.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(load "buildvar.scm")
(defvar CSC ~/local/chicken4/bin/csc)
(defvar DEFINES -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -DAUTODETECT_COCOA -DC_SHARED)
(defvar CFLAGS -no-cpp-precomp -fno-strict-aliasing -fno-common -DHAVE_CHICKEN_CONFIG_H -m64 -fomit-frame-pointer -pipe -Os -Wno-write-strings -W ,@DEFINES -g -fPIC -DPIC)
(defvar CXXFLAGS ,@CFLAGS)
(defvar INCPATH -I/Users/Indy/local/chicken4/include -I/usr/local/Qt4.5/mkspecs/macx-g++ -I. -I/usr/local/Trolltech/Qt-4.5.3/include -I/usr/include -Irelease -I. -F/Library/Framework -F/usr/local/Trolltech/Qt-4.5.3/libs)
(defvar LFLAGS -headerpad_max_install_names -g -m64 -bundle)
(defvar LIBS -F/Library/Frameworks -F/usr/local/Trolltech/Qt-4.5.3/lib -L/usr/local/Trolltech/Qt-4.5.3/lib -L/Library/Frameworks -framework QtOpenGL -framework QtGui -framework AppKit -framework QtCore -lz -lm -framework ApplicationServices -L/Users/Indy/local/chicken4/lib -lchicken -lQtUiTools)
(defvar OUTFILE qt.so)
(command CSC '-s '-j 'qt '-c++ '-t 'qt.scm)
(build-cxx '(qt.cpp))
(command LINK '-o OUTFILE LFLAGS LIBS OBJECT_FILES)
(command 'install_name_tool '-change 'libchicken.dylib '/Users/Indy/local/chicken4/lib/libchicken.dylib OUTFILE)