aboutsummaryrefslogtreecommitdiffstats
path: root/nextstep
diff options
context:
space:
mode:
authorAlan Third2021-06-16 21:28:10 +0100
committerAlan Third2021-06-26 10:34:59 +0100
commit5dd2d50f3d5e65b85c87da86e2e8a6d087fe5767 (patch)
treef8add442c328e37e5b8519415ed60d0c54523e65 /nextstep
parent4d63a033a726a8da33bda8d18a503e88bfb794fb (diff)
downloademacs-5dd2d50f3d5e65b85c87da86e2e8a6d087fe5767.tar.gz
emacs-5dd2d50f3d5e65b85c87da86e2e8a6d087fe5767.zip
Fix NS native compilation builds
* Makefile.in (ns_applibexecdir): (ns_applibdir): (ns_appdir): New variables. (.PHONY): Include new rule. (epaths-force-ns-self-contained): Remove the app bundle directory from all paths. * configure.ac (NS_SELF_CONTAINED): Set the default site-lisp directory instead of hard-coding it in the ObjC code, and use the new epaths generating make rule. * src/callproc.c (init_callproc_1): (init_callproc): Remove all the NS specific code as the special cases are now handled by decode_env_path. * src/emacs.c (load_pdump): (decode_env_path): Use ns_relocate to find the correct directory after relocation. * src/lread.c (load_path_default): Remove all the NS specific code as the special cases are now handled by decode_env_path. * src/nsterm.h: Update function definitions. * src/nsterm.m (ns_etc_directory): (ns_exec_path): (ns_load_path): Remove functions that are no longer needed. (ns_relocate): New function to calculate paths within the NS app bundle. * nextstep/Makefile.in (ns_applibexecdir): New variable, and update anything relying on the libexec location.
Diffstat (limited to 'nextstep')
-rw-r--r--nextstep/Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/nextstep/Makefile.in b/nextstep/Makefile.in
index 3168fee76c0..42b2ab2715d 100644
--- a/nextstep/Makefile.in
+++ b/nextstep/Makefile.in
@@ -36,6 +36,7 @@ MKDIR_P = @MKDIR_P@
36ns_appdir = @ns_appdir@ 36ns_appdir = @ns_appdir@
37## GNUstep: ns_appdir; macOS: ns_appdir/Contents/MacOS 37## GNUstep: ns_appdir; macOS: ns_appdir/Contents/MacOS
38ns_appbindir = @ns_appbindir@ 38ns_appbindir = @ns_appbindir@
39ns_applibexecdir = @ns_applibexecdir@
39## GNUstep/Emacs.base or Cocoa/Emacs.base. 40## GNUstep/Emacs.base or Cocoa/Emacs.base.
40ns_appsrc = @ns_appsrc@ 41ns_appsrc = @ns_appsrc@
41## GNUstep: GNUstep/Emacs.base/Resources/Info-gnustep.plist 42## GNUstep: GNUstep/Emacs.base/Resources/Info-gnustep.plist
@@ -44,7 +45,7 @@ ns_check_file = @ns_appdir@/@ns_check_file@
44 45
45.PHONY: all 46.PHONY: all
46 47
47all: ${ns_appdir} ${ns_appbindir}/Emacs ${ns_appbindir}/Emacs.pdmp 48all: ${ns_appdir} ${ns_appbindir}/Emacs ${ns_applibexecdir}/Emacs.pdmp
48 49
49${ns_check_file} ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc} 50${ns_check_file} ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc}
50 rm -rf ${ns_appdir} 51 rm -rf ${ns_appdir}
@@ -63,8 +64,10 @@ ${ns_appbindir}/Emacs: ${ns_appdir} ${ns_check_file} ../src/emacs${EXEEXT}
63 ${MKDIR_P} ${ns_appbindir} 64 ${MKDIR_P} ${ns_appbindir}
64 cp -f ../src/emacs${EXEEXT} $@ 65 cp -f ../src/emacs${EXEEXT} $@
65 66
66${ns_appbindir}/Emacs.pdmp: ${ns_appdir} ${ns_check_file} ../src/emacs${EXEEXT}.pdmp 67# FIXME: Don't install the dump file into the app bundle when
67 ${MKDIR_P} ${ns_appbindir} 68# self-contained install is disabled.
69${ns_applibexecdir}/Emacs.pdmp: ${ns_appdir} ${ns_check_file} ../src/emacs${EXEEXT}.pdmp
70 ${MKDIR_P} ${ns_applibexecdir}
68 cp -f ../src/emacs${EXEEXT}.pdmp $@ 71 cp -f ../src/emacs${EXEEXT}.pdmp $@
69 72
70.PHONY: FORCE 73.PHONY: FORCE
@@ -85,9 +88,8 @@ links: ../src/emacs${EXEEXT}
85 ln -s $(top_srcdir_abs)/info ${ns_appdir}/Contents/Resources 88 ln -s $(top_srcdir_abs)/info ${ns_appdir}/Contents/Resources
86 ${MKDIR_P} ${ns_appbindir} 89 ${MKDIR_P} ${ns_appbindir}
87 ln -s $(abs_top_builddir)/src/emacs${EXEEXT} ${ns_appbindir}/Emacs 90 ln -s $(abs_top_builddir)/src/emacs${EXEEXT} ${ns_appbindir}/Emacs
88 ln -s $(abs_top_builddir)/src/emacs${EXEEXT}.pdmp ${ns_appbindir}/Emacs.pdmp
89 ln -s $(abs_top_builddir)/lib-src ${ns_appbindir}/bin 91 ln -s $(abs_top_builddir)/lib-src ${ns_appbindir}/bin
90 ln -s $(abs_top_builddir)/lib-src ${ns_appbindir}/libexec 92 ln -s $(abs_top_builddir)/lib-src ${ns_applibexecdir}
91 ${MKDIR_P} ${ns_appdir}/Contents/Resources/etc 93 ${MKDIR_P} ${ns_appdir}/Contents/Resources/etc
92 for f in $(shell cd $(top_srcdir_abs)/etc; ls); do ln -s $(top_srcdir_abs)/etc/$$f ${ns_appdir}/Contents/Resources/etc; done 94 for f in $(shell cd $(top_srcdir_abs)/etc; ls); do ln -s $(top_srcdir_abs)/etc/$$f ${ns_appdir}/Contents/Resources/etc; done
93 ln -s $(abs_top_builddir)/etc/DOC ${ns_appdir}/Contents/Resources/etc 95 ln -s $(abs_top_builddir)/etc/DOC ${ns_appdir}/Contents/Resources/etc