Support for Pasting from macOS PasteBoard

This commit is contained in:
Thomas BERNARD
2019-01-04 22:43:30 +01:00
parent 40dd718dd1
commit 8c03202df6
6 changed files with 151 additions and 4 deletions

View File

@@ -279,8 +279,9 @@ endif
# Use gcc for compiling. Use ncc to build a callgraph and analyze the code.
#CC = nccgen -ncgcc -ncld -ncfabs
OBJDIR = ../obj/macosx
PLATFORMOBJ = pasteboard.o
ifeq ($(API),sdl)
PLATFORMOBJ = SDLMain.o
PLATFORMOBJ += SDLMain.o
endif
FCLOPT =
MACAPPEXE = Grafx2.app/Contents/MacOS/Grafx2
@@ -860,7 +861,7 @@ release : $(BIN)
# .tgz archive with source only files
SRCARCH = ../src-$(VERSIONTAG).tgz
$(SRCARCH): $(wildcard *.c) $(wildcard *.cpp) $(wildcard *.h) Makefile Makefile.dep gfx2.ico Grafx2_Prefix.pch SDLMain.m gfx2.rc
$(SRCARCH): $(wildcard *.c) $(wildcard *.cpp) $(wildcard *.h) Makefile Makefile.dep gfx2.ico Grafx2_Prefix.pch $(wildcard *.m) gfx2.rc
cd .. && $(TAR) czf $(SRCARCH:../%=%) $(addprefix src/,$^)
ifeq ($(PLATFORM),Darwin)
@@ -887,7 +888,7 @@ ifeq ($(PLATFORM),Darwin)
endif
$(TAR) czf "../grafx2-$(VERSIONTAG)-src.tgz" $(TARTRANSFORM) \
../src/*.c ../src/*.cpp ../src/*.h ../src/Makefile ../src/Makefile.dep \
../src/Grafx2_Prefix.pch ../src/SDLMain.m ../src/gfx2.rc ../src/gfx2.ico \
../src/Grafx2_Prefix.pch ../src/*.m ../src/gfx2.rc ../src/gfx2.ico \
../src/Grafx2.icns ../src/English.lproj/* ../src/Info.plist \
../share/grafx2/gfx2def.ini $(SCRIPT_FILES) $(SKIN_FILES) \
../share/grafx2/gfx2.gif ../share/grafx2/gfx2.png ../share/icons/grafx2.svg \