Windows changes: Install plugins into lib/ not into plugins/. Don't link against libiconv when compiling against GLib 2.14 and above (it's statically linked into GLib). Install Geany's message catalogs into share/locale rather than lib/locale as GTK does since 2.12.2.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2673 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
57b50763df
commit
5739654633
10
ChangeLog
10
ChangeLog
@ -7,7 +7,15 @@
|
|||||||
Remove useless path separator.
|
Remove useless path separator.
|
||||||
* configure.in:
|
* configure.in:
|
||||||
Set $(docdir) if it is not set automatically.
|
Set $(docdir) if it is not set automatically.
|
||||||
|
* geany.nsi, plugins/makefile.win32, src/makefile.win32, src/main.c,
|
||||||
|
src/plugins.c:
|
||||||
|
Windows changes:
|
||||||
|
Install plugins into lib/ not into plugins/.
|
||||||
|
Don't link against libiconv when compiling against GLib 2.14 and
|
||||||
|
above (it's statically linked into GLib).
|
||||||
|
Install Geany's message catalogs into share/locale rather than
|
||||||
|
lib/locale as GTK does since 2.12.2.
|
||||||
|
|
||||||
|
|
||||||
2008-06-09 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2008-06-09 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||||
|
|
||||||
|
|||||||
20
geany.nsi
20
geany.nsi
@ -131,8 +131,8 @@ Section "!Program Files" SEC01
|
|||||||
File "${RESOURCEDIR}\data\GPL-2"
|
File "${RESOURCEDIR}\data\GPL-2"
|
||||||
File "${RESOURCEDIR}\data\file*"
|
File "${RESOURCEDIR}\data\file*"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\share"
|
SetOutPath "$INSTDIR\share\icons"
|
||||||
File /r "${RESOURCEDIR}\share\*"
|
File /r "${RESOURCEDIR}\share\icons\*"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
@ -146,14 +146,14 @@ SectionEnd
|
|||||||
Section "Plugins" SEC02
|
Section "Plugins" SEC02
|
||||||
SectionIn 1
|
SectionIn 1
|
||||||
SetOverwrite ifnewer
|
SetOverwrite ifnewer
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR\lib"
|
||||||
File /r "${RESOURCEDIR}\plugins"
|
File "${RESOURCEDIR}\lib\*.dll"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Language Files" SEC03
|
Section "Language Files" SEC03
|
||||||
SectionIn 1
|
SectionIn 1
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR\share\locale"
|
||||||
File /r "${RESOURCEDIR}\lib"
|
File /r "${RESOURCEDIR}\share\locale\*"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Documentation" SEC04
|
Section "Documentation" SEC04
|
||||||
@ -191,6 +191,8 @@ Section "GTK 2.12 Runtime Environment" SEC06
|
|||||||
File /r "gtk\etc\*"
|
File /r "gtk\etc\*"
|
||||||
SetOutPath "$INSTDIR\lib"
|
SetOutPath "$INSTDIR\lib"
|
||||||
File /r "gtk\lib\*"
|
File /r "gtk\lib\*"
|
||||||
|
SetOutPath "$INSTDIR\share"
|
||||||
|
File /r "gtk\share\*"
|
||||||
/* code to embed GTK+ installer executable
|
/* code to embed GTK+ installer executable
|
||||||
File ${GTK_INSTALLER}
|
File ${GTK_INSTALLER}
|
||||||
ExecWait ${GTK_INSTALLER}
|
ExecWait ${GTK_INSTALLER}
|
||||||
@ -289,7 +291,6 @@ Section Uninstall
|
|||||||
Delete "$INSTDIR\charset.dll"
|
Delete "$INSTDIR\charset.dll"
|
||||||
Delete "$INSTDIR\gspawn-win32-helper.exe"
|
Delete "$INSTDIR\gspawn-win32-helper.exe"
|
||||||
Delete "$INSTDIR\gspawn-win32-helper-console.exe"
|
Delete "$INSTDIR\gspawn-win32-helper-console.exe"
|
||||||
Delete "$INSTDIR\iconv.dll"
|
|
||||||
Delete "$INSTDIR\intl.dll"
|
Delete "$INSTDIR\intl.dll"
|
||||||
Delete "$INSTDIR\jpeg62.dll"
|
Delete "$INSTDIR\jpeg62.dll"
|
||||||
Delete "$INSTDIR\libgthread-2.0-0.dll"
|
Delete "$INSTDIR\libgthread-2.0-0.dll"
|
||||||
@ -299,7 +300,6 @@ Section Uninstall
|
|||||||
Delete "$INSTDIR\libgobject-2.0-0.dll"
|
Delete "$INSTDIR\libgobject-2.0-0.dll"
|
||||||
Delete "$INSTDIR\libpango-1.0-0.dll"
|
Delete "$INSTDIR\libpango-1.0-0.dll"
|
||||||
Delete "$INSTDIR\libpangoft2-1.0-0.dll"
|
Delete "$INSTDIR\libpangoft2-1.0-0.dll"
|
||||||
Delete "$INSTDIR\libpng13.dll"
|
|
||||||
Delete "$INSTDIR\libatk-1.0-0.dll"
|
Delete "$INSTDIR\libatk-1.0-0.dll"
|
||||||
Delete "$INSTDIR\libcairo-2.dll"
|
Delete "$INSTDIR\libcairo-2.dll"
|
||||||
Delete "$INSTDIR\libgdk_pixbuf-2.0-0.dll"
|
Delete "$INSTDIR\libgdk_pixbuf-2.0-0.dll"
|
||||||
@ -307,8 +307,11 @@ Section Uninstall
|
|||||||
Delete "$INSTDIR\libglib-2.0-0.dll"
|
Delete "$INSTDIR\libglib-2.0-0.dll"
|
||||||
Delete "$INSTDIR\libgmodule-2.0-0.dll"
|
Delete "$INSTDIR\libgmodule-2.0-0.dll"
|
||||||
Delete "$INSTDIR\libtiff3.dll"
|
Delete "$INSTDIR\libtiff3.dll"
|
||||||
|
Delete "$INSTDIR\libpng12-0.dll"
|
||||||
|
Delete "$INSTDIR\libgio-2.0-0.dll"
|
||||||
Delete "$INSTDIR\zlib1.dll"
|
Delete "$INSTDIR\zlib1.dll"
|
||||||
|
|
||||||
|
|
||||||
Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
|
Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
|
||||||
Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
|
Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
|
||||||
Delete "$QUICKLAUNCH\Geany.lnk"
|
Delete "$QUICKLAUNCH\Geany.lnk"
|
||||||
@ -318,7 +321,6 @@ Section Uninstall
|
|||||||
|
|
||||||
RMDir "$SMPROGRAMS\$ICONS_GROUP"
|
RMDir "$SMPROGRAMS\$ICONS_GROUP"
|
||||||
RMDir /r "$INSTDIR\doc"
|
RMDir /r "$INSTDIR\doc"
|
||||||
RMDir /r "$INSTDIR\plugins"
|
|
||||||
RMDir /r "$INSTDIR\data"
|
RMDir /r "$INSTDIR\data"
|
||||||
RMDir /r "$INSTDIR\etc"
|
RMDir /r "$INSTDIR\etc"
|
||||||
RMDir /r "$INSTDIR\lib"
|
RMDir /r "$INSTDIR\lib"
|
||||||
|
|||||||
@ -28,7 +28,7 @@ INCLUDEDIRS= -I.. \
|
|||||||
ALL_GTK_LIBS= \
|
ALL_GTK_LIBS= \
|
||||||
-L"$(PREFIX)/lib" \
|
-L"$(PREFIX)/lib" \
|
||||||
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
||||||
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
|
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
|
||||||
|
|
||||||
CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
|
CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
@ -37,6 +37,9 @@ else
|
|||||||
CFLAGS=-O2 $(CBASEFLAGS)
|
CFLAGS=-O2 $(CBASEFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef GTK210
|
||||||
|
ALL_GTK_LIBS += -liconv
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: all clean plugins
|
.PHONY: all clean plugins
|
||||||
|
|
||||||
|
|||||||
@ -461,8 +461,8 @@ static void locale_init(void)
|
|||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
|
gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
|
||||||
/* e.g. C:\Program Files\geany\lib\locale */
|
/* e.g. C:\Program Files\Geany\share\locale */
|
||||||
locale_dir = g_strconcat(install_dir, "\\lib\\locale", NULL);
|
locale_dir = g_strconcat(install_dir, "\\share\\locale", NULL);
|
||||||
g_free(install_dir);
|
g_free(install_dir);
|
||||||
#else
|
#else
|
||||||
locale_dir = g_strdup(GEANY_LOCALEDIR);
|
locale_dir = g_strdup(GEANY_LOCALEDIR);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
DEFINES = -DHAVE_CONFIG_H \
|
DEFINES = -DHAVE_CONFIG_H \
|
||||||
-DGEANY_DATADIR=\"data\" \
|
-DGEANY_DATADIR=\"data\" \
|
||||||
-DGEANY_LOCALEDIR=\"data\" \
|
-DGEANY_LOCALEDIR=\"share\" \
|
||||||
-DGEANY_LIBDIR=\"\" \
|
-DGEANY_LIBDIR=\"\" \
|
||||||
-DGEANY_PREFIX=\"\"
|
-DGEANY_PREFIX=\"\"
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ INCLUDEDIRS= -I.. \
|
|||||||
ALL_GTK_LIBS= \
|
ALL_GTK_LIBS= \
|
||||||
-L"$(PREFIX)/lib" \
|
-L"$(PREFIX)/lib" \
|
||||||
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
||||||
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
|
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl
|
||||||
# these things are for GTK >= 2.8
|
# these things are for GTK >= 2.8
|
||||||
# (should be same as with MSYS: pkg-config --libs gtk+-2.0 gthread-2.0)
|
# (should be same as with MSYS: pkg-config --libs gtk+-2.0 gthread-2.0)
|
||||||
#"$(PREFIX)/lib/libcairo.dll.a" \
|
#"$(PREFIX)/lib/libcairo.dll.a" \
|
||||||
@ -44,9 +44,9 @@ ALL_GTK_LIBS= \
|
|||||||
#"$(PREFIX)/lib/charset.lib" \
|
#"$(PREFIX)/lib/charset.lib" \
|
||||||
|
|
||||||
ifdef GTK210
|
ifdef GTK210
|
||||||
PRINTING_LIBS=-lcairo -lpangocairo-1.0
|
ALL_GTK_LIBS +=-lcairo -lpangocairo-1.0
|
||||||
else
|
else
|
||||||
PRINTING_LIBS=
|
ALL_GTK_LIBS +=-liconv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
WIN_LIBS=-mwindows -lkernel32 -limm32 -lshfolder -lshell32 \
|
WIN_LIBS=-mwindows -lkernel32 -limm32 -lshfolder -lshell32 \
|
||||||
@ -55,6 +55,7 @@ WIN_LIBS=-mwindows -lkernel32 -limm32 -lshfolder -lshell32 \
|
|||||||
CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
|
CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
CFLAGS=-O0 -g $(CBASEFLAGS)
|
CFLAGS=-O0 -g $(CBASEFLAGS)
|
||||||
|
DEFINES += -DGEANY_DEBUG
|
||||||
else
|
else
|
||||||
CFLAGS=-O2 $(CBASEFLAGS)
|
CFLAGS=-O2 $(CBASEFLAGS)
|
||||||
endif
|
endif
|
||||||
@ -87,7 +88,7 @@ binclean:
|
|||||||
|
|
||||||
$(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/tagmanager.a
|
$(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/tagmanager.a
|
||||||
$(CXX) $(OBJS) $(RES) -o $(TARGET) \
|
$(CXX) $(OBJS) $(RES) -o $(TARGET) \
|
||||||
../scintilla/scintilla.a ../tagmanager/tagmanager.a $(ALL_GTK_LIBS) $(PRINTING_LIBS) \
|
../scintilla/scintilla.a ../tagmanager/tagmanager.a $(ALL_GTK_LIBS) \
|
||||||
$(WIN_LIBS)
|
$(WIN_LIBS)
|
||||||
|
|
||||||
deps.mak:
|
deps.mak:
|
||||||
|
|||||||
@ -715,7 +715,7 @@ static gchar *get_plugin_path()
|
|||||||
gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
|
gchar *install_dir = g_win32_get_package_installation_directory("geany", NULL);
|
||||||
gchar *path;
|
gchar *path;
|
||||||
|
|
||||||
path = g_strconcat(install_dir, "\\plugins", NULL);
|
path = g_strconcat(install_dir, "\\lib", NULL);
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user