VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Build
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-05-31 18:44:53 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:18:59 +0100
commit7ffce028d04a6b13ef762e2b89c34b688e8ca59d (patch)
treeeefedb6e94de5b26fa963675969490c641c29077 /src/Build
parent97011f179cfd3dcd12446ef4ccb6964c8e52c3db (diff)
downloadVeraCrypt-7ffce028d04a6b13ef762e2b89c34b688e8ca59d.tar.gz
VeraCrypt-7ffce028d04a6b13ef762e2b89c34b688e8ca59d.zip
Add TrueCrypt 7.1a MacOSX/Linux specific source files.
Diffstat (limited to 'src/Build')
-rw-r--r--src/Build/Include/Makefile.inc58
-rw-r--r--src/Build/Resources/MacOSX/Info.plist.xml44
2 files changed, 102 insertions, 0 deletions
diff --git a/src/Build/Include/Makefile.inc b/src/Build/Include/Makefile.inc
new file mode 100644
index 00000000..39395e95
--- /dev/null
+++ b/src/Build/Include/Makefile.inc
@@ -0,0 +1,58 @@
+#
+# Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved.
+#
+# Governed by the TrueCrypt License 3.0 the full text of which is contained in
+# the file License.txt included in TrueCrypt binary and source code distribution
+# packages.
+#
+
+$(NAME): $(NAME).a
+
+clean:
+ @echo Cleaning $(NAME)
+ rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJS:.o=.d) *.gch
+
+%.o: %.c
+ @echo Compiling $(<F)
+ $(CC) $(CFLAGS) -c $< -o $@
+
+%.o: %.cpp
+ @echo Compiling $(<F)
+ $(CXX) $(CXXFLAGS) -c $< -o $@
+
+%.o: %.asm
+ @echo Assembling $(<F)
+ $(AS) $(ASFLAGS) -o $@ $<
+
+
+# Precompiled headers
+%.h.gch: %.h
+ @echo Precompiling $(<F)
+ $(CXX) $(CXXFLAGS) -g0 -c $< || (rm -f $(<F).gch && exit 1)
+
+
+# Embedded files
+OD_BIN := od -v -t u1 -A n
+TR_SED_BIN := tr '\n' ' ' | tr -s ' ' ',' | sed -e 's/^,//g' -e 's/,$$/n/' | tr 'n' '\n'
+
+%.xml.h: %.xml
+ @echo Converting $(<F)
+ $(OD_BIN) $< | $(TR_SED_BIN) >$@
+
+%.txt.h: %.txt
+ @echo Converting $(<F)
+ $(OD_BIN) $< | $(TR_SED_BIN) >$@
+
+%.bmp.h: %.bmp
+ @echo Converting $(<F)
+ $(OD_BIN) $< | $(TR_SED_BIN) >$@
+
+
+# Dependencies
+-include $(OBJS:.o=.d)
+
+
+$(NAME).a: $(OBJS)
+ @echo Updating library $@
+ $(AR) $(AFLAGS) -rcu $@ $(OBJS)
+ $(RANLIB) $@
diff --git a/src/Build/Resources/MacOSX/Info.plist.xml b/src/Build/Resources/MacOSX/Info.plist.xml
new file mode 100644
index 00000000..29e114fa
--- /dev/null
+++ b/src/Build/Resources/MacOSX/Info.plist.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+
+ <key>CFBundleIdentifier</key>
+ <string>org.TrueCryptFoundation.TrueCrypt</string>
+
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+
+ <key>CFBundleExecutable</key>
+ <string>TrueCrypt</string>
+
+ <key>CFBundleIconFile</key>
+ <string>TrueCrypt.icns</string>
+
+ <key>CFBundleName</key>
+ <string>TrueCrypt</string>
+
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <key>CFBundleSignature</key>
+ <string>TRUE</string>
+
+ <key>CFBundleVersion</key>
+ <string>0</string>
+
+ <key>CFBundleShortVersionString</key>
+ <string>_VERSION_</string>
+
+ <key>CFBundleLongVersionString</key>
+ <string>TrueCrypt _VERSION_</string>
+
+ <key>LSRequiresCarbon</key>
+ <true/>
+
+ <key>CSResourcesFileMapped</key>
+ <true/>
+</dict>
+</plist>