Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Xcode project for macOS #72

Open
wants to merge 3 commits into
base: testing
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions platforms/macOS/Boost/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

#
# Copyright © 2016 Tommaso Gragnato <gragnato.tommaso@icloud.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

BOOSTSRC := $(SRCROOT)/Boost
BOOSTREPO := https://github.com/boostorg

LIST = array asio assert bind config core date_time mpl preprocessor predef
LIST += regex smart_ptr static_assert system throw_exception type_traits utility

$(LIST):
git clone $(BOOSTREPO)/$@.git $(BOOSTSRC)/$@ --depth 1
touch $(BOOSTSRC)/$@

$(BOOSTSRC)/.updated: $(LIST)
touch $@

install: $(BOOSTSRC)/.updated

clean:
echo 'no clean target defined'

.PHONY: install
.DEFAULT_GOAL := install
49 changes: 49 additions & 0 deletions platforms/macOS/CryptoPP/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

#
# Copyright © 2016 Tommaso Gragnato <gragnato.tommaso@icloud.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

CRYPTODIR := $(SRCROOT)/CryptoPP
CRYPTOREPO := https://github.com/weidai11/cryptopp.git
CRYPTOBRANCH := master

SRCDIR := $(CRYPTODIR)/src
DESTDIR := $(CRYPTODIR)/dest

DEPLOY_CONF := -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
TMP_ARCH := $(shell echo $(ARCHS) | sed 's/ / -arch /g' )
CXXFLAGS := -DNDEBUG -g2 -Os -fPIC -pipe -arch

$(CRYPTODIR)/.updated:
git clone $(CRYPTOREPO) $(SRCDIR) --depth 1 --branch $(CRYPTOBRANCH)
touch $@

$(CRYPTODIR)/.installed: $(CRYPTODIR)/.updated
CXXFLAGS="$(CXXFLAGS) $(TMP_ARCH) $(DEPLOY_CONF)" \
PREFIX=$(DESTDIR) \
$(MAKE) -C $(SRCDIR) -f GNUmakefile-cross static all
CXXFLAGS="$(CXXFLAGS) $(TMP_ARCH) $(DEPLOY_CONF)" \
PREFIX=$(DESTDIR) \
$(MAKE) -C $(SRCDIR) -f GNUmakefile-cross install
touch $@

install: $(CRYPTODIR)/.installed

clean:
$(RM) -rf $(DESTDIR)
if [ -d $(SRCDIR) ]; then $(MAKE) -C $(SRCDIR) clean; fi

.PHONY: install
.DEFAULT_GOAL := install
2 changes: 2 additions & 0 deletions platforms/macOS/English.lproj/en
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

2,160 changes: 2,160 additions & 0 deletions platforms/macOS/aMule.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions platforms/macOS/aMule_Xcode-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>amule.icns</string>
<key>CFBundleIdentifier</key>
<string>com.amuleproject.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.0</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions platforms/macOS/aMule_Xcode_Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//
// Prefix header for all source files of the 'aMule-Xcode' target in the 'aMule-Xcode' project
//

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
Binary file added platforms/macOS/amule.icns
Binary file not shown.
57 changes: 57 additions & 0 deletions platforms/macOS/pUPnP/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

#
# Copyright © 2016 Tommaso Gragnato <gragnato.tommaso@icloud.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

PUPNPDIR := $(SRCROOT)/pUPnP
PUPNPREPO := https://github.com/mrjimenez/pupnp.git
PUPNPBRANCH := branch-1.6.x

SRCDIR := $(PUPNPDIR)/src
BUILDDIR := $(PUPNPDIR)/build
DESTDIR := $(PUPNPDIR)/dest

DEPLOY_CONF := -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
TMP_ARCH := $(shell echo $(ARCHS) | sed 's/ / -arch /g' )
CFLAGS := -DNDEBUG -g2 -Os -fPIC -pipe -arch

$(PUPNPDIR)/.updated:
git clone $(PUPNPREPO) $(SRCDIR) --depth 1 --branch $(PUPNPBRANCH)
touch $@

$(PUPNPDIR)/.configured: $(PUPNPDIR)/.updated
if ! [ -d $(BUILDDIR) ]; then mkdir $(BUILDDIR); fi
autoreconf --install $(SRCDIR)
cd $(BUILDDIR) && CFLAGS="$(CFLAGS) $(TMP_ARCH) $(DEPLOY_CONF)" \
$(SRCDIR)/configure \
--prefix=$(DESTDIR) \
--disable-debug \
--enable-static \
--disable-shared \
--enable-ipv6
touch $@

$(PUPNPDIR)/.installed: $(PUPNPDIR)/.configured
$(MAKE) -C $(BUILDDIR) install
touch $@

install: $(PUPNPDIR)/.installed

clean:
$(RM) -rf $(DESTDIR)
if [ -d $(BUILDDIR) ]; then $(MAKE) -C $(BUILDDIR) clean; fi

.PHONY: install
.DEFAULT_GOAL := install
76 changes: 76 additions & 0 deletions platforms/macOS/wxWidgets/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

#
# Copyright © 2016 Tommaso Gragnato <gragnato.tommaso@icloud.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

WXDIR := $(SRCROOT)/wxWidgets
WXREPO := https://github.com/wxWidgets/wxWidgets.git
WXBRANCH := WX_3_0_BRANCH

SRCDIR := $(WXDIR)/src
BUILDDIR := $(WXDIR)/build
DESTDIR := $(WXDIR)/dest

STORE_ARCH := $(shell echo $(ARCHS) | sed 's/ /,/g' )

$(WXDIR)/.updated:
git clone $(WXREPO) $(SRCDIR) --depth 1 --branch $(WXBRANCH)
touch $@

$(WXDIR)/.configured: $(WXDIR)/.updated
if ! [ -d $(BUILDDIR) ]; then mkdir $(BUILDDIR); fi
cd $(BUILDDIR) && $(SRCDIR)/configure \
--prefix=$(DESTDIR) \
--disable-debug \
--enable-unicode \
--enable-std_string \
--enable-display \
--with-opengl \
--with-regex \
--with-osx_cocoa \
--without-libjpeg \
--without-libtiff \
--without-liblzma \
--without-libpng \
--with-zlib \
--enable-dnd \
--enable-clipboard \
--enable-webkit \
--disable-svg \
--enable-graphics_ctx \
--enable-controls \
--enable-dataviewctrl \
--with-expat \
--disable-precomp-headers \
--disable-monolithic \
--enable-static \
--disable-shared \
--disable-mediactrl \
--with-macosx-version-min=$(MACOSX_DEPLOYMENT_TARGET) \
--enable-universal_binary=$(STORE_ARCH)
touch $@

$(WXDIR)/.installed: $(WXDIR)/.configured
$(MAKE) -C $(BUILDDIR) install
touch $@

install: $(WXDIR)/.installed

clean:
$(RM) -rf $(DESTDIR)
if [ -d $(BUILDDIR) ]; then $(MAKE) -C $(BUILDDIR) clean; fi

.PHONY: install
.DEFAULT_GOAL := install