diff --git a/.gitmodules b/.gitmodules index 475c754..3c7a6ac 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "sys/db"] - path = sys/db +[submodule "src/sys/db"] + path = src/sys/db url = git://github.com/aviat4ion/Query.git diff --git a/OpenSQLManager.c b/OpenSQLManager.c index 3af9bcb..e10e581 100644 --- a/OpenSQLManager.c +++ b/OpenSQLManager.c @@ -14,7 +14,6 @@ * Wrapper program for embeded php */ -#include #include int main(int argc, char *argv[]) diff --git a/build_osx_bundle.php b/build_osx_bundle.php new file mode 100644 index 0000000..9423ec9 --- /dev/null +++ b/build_osx_bundle.php @@ -0,0 +1,168 @@ + + !DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + + + CFBundleGetInfoString + App for managing databases. + CFBundleExecutable + OpenSQLManager + CFBundleIdentifier + com.aviat4ion.OpenSQLManager + CFBundleName + OpenSQLManager + CFBundleIconFile + OSM.icns + CFBundleShortVersionString + {$version} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + IFMajorVersion + {$major} + IFMinorVersion + {$minor} + + +XML; + + // Add the plist to the bundle + file_put_contents(CONTENTS.'/Info.plist', $plist); +} + +create_dirs(); +copy_src(); +create_plist(); +exit("App bundle created \n"); \ No newline at end of file diff --git a/makefile b/makefile index b8ead0f..d2ab3c8 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,11 @@ -CC = gcc CFLAGS = -c `/opt/php-embed/bin/php-config --includes` -Wall -g LDFLAGS = -L/Library/Frameworks/Firebird.framework/Libraries -L/opt/php-embed/lib -lphp5 `/opt/php-embed/bin/php-config --libs` all: OpenSQLManager.c ${CC} -O0 -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} - ${CC} -O0 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} \ No newline at end of file + ${CC} -O0 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} + +release: OpenSQLManager.c + ${CC} -O2 -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} + ${CC} -O2 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} \ No newline at end of file diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml index 73a484f..ab430bb 100644 --- a/phpdoc.dist.xml +++ b/phpdoc.dist.xml @@ -11,10 +11,10 @@