-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Port from GTK 2 to GTK 3 * Update the Earthfile * Add missing line from README * Update the Earthfile
- Loading branch information
Showing
7 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
FILE(TO_CMAKE_PATH "$ENV{GTK2_DIR}" TRY1_DIR) | ||
FILE(TO_CMAKE_PATH "${GTK2_DIR}" TRY2_DIR) | ||
FILE(TO_CMAKE_PATH "$ENV{GTK3_DIR}" TRY1_DIR) | ||
FILE(TO_CMAKE_PATH "${GTK3_DIR}" TRY2_DIR) | ||
FILE(GLOB GTK_DIR ${TRY1_DIR} ${TRY2_DIR}) | ||
|
||
FIND_PATH(GTK_gtk_2_INCLUDE_DIR gtk/gtk.h | ||
FIND_PATH(GTK_gtk_3_INCLUDE_DIR gtk/gtk.h | ||
ENV INCLUDE DOC "Directory containing gtk/gtk.h include file") | ||
|
||
FIND_PATH(GTK_gdk_2_INCLUDE_DIR gdk/gdk.h | ||
FIND_PATH(GTK_gdk_3_INCLUDE_DIR gdk/gdk.h | ||
ENV INCLUDE DOC "Directory containing gdk/gdk.h include file") | ||
|
||
FIND_PATH(GTK_gdkconfig_2_INCLUDE_DIR gdkconfig.h | ||
FIND_PATH(GTK_gdkconfig_3_INCLUDE_DIR gdkconfig.h | ||
ENV INCLUDE DOC "Directory containing gdkconfig.h include file") | ||
|
||
FIND_LIBRARY(GTK_gdk_pixbuf_2_LIBRARY NAMES gdk_pixbuf-2.0 | ||
FIND_LIBRARY(GTK_gdk_pixbuf_3_LIBRARY NAMES gdk_pixbuf-3.0 | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/local/lib /usr/lib | ||
ENV LIB | ||
DOC "gdk_pixbuf library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
FIND_LIBRARY(GTK_gdk_2_LIBRARY NAMES gdk-win32-2.0 gdk-x11-2.0 | ||
FIND_LIBRARY(GTK_gdk_3_LIBRARY NAMES gdk-win32-3.0 gdk-x11-3.0 | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/lib /usr/local/lib | ||
ENV LIB | ||
DOC "gdk2 library to link with" | ||
DOC "gdk3 library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
FIND_LIBRARY(GTK_gtk_2_LIBRARY NAMES gtk-win32-2.0 gtk-x11-2.0 | ||
FIND_LIBRARY(GTK_gtk_3_LIBRARY NAMES gtk-win32-3.0 gtk-x11-3.0 | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/lib /usr/local/lib | ||
ENV LIB | ||
DOC "gtk2 library to link with" | ||
DOC "gtk3 library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
FIND_LIBRARY(GTK_gdk_pixbuf_2_STATIC_LIBRARY NAMES libgdk_pixbuf-2.0.a | ||
FIND_LIBRARY(GTK_gdk_pixbuf_3_STATIC_LIBRARY NAMES libgdk_pixbuf-3.0.a | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/local/lib /usr/lib | ||
ENV LIB | ||
DOC "gdk_pixbuf library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
FIND_LIBRARY(GTK_gdk_2_STATIC_LIBRARY NAMES libgdk-x11-2.0.a | ||
FIND_LIBRARY(GTK_gdk_3_STATIC_LIBRARY NAMES libgdk-x11-3.0.a | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/lib /usr/local/lib | ||
ENV LIB | ||
DOC "gdk2 library to link with" | ||
DOC "gdk3 library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
FIND_LIBRARY(GTK_gtk_2_STATIC_LIBRARY NAMES libgtk-x11-2.0.a | ||
FIND_LIBRARY(GTK_gtk_3_STATIC_LIBRARY NAMES libgtk-x11-3.0.a | ||
PATHS ${GTK_DIR}/lib ${GTK_DIR}/bin ${GTK_DIR}/win32/bin ${GTK_DIR}/lib ${GTK_DIR}/win32/lib /usr/lib /usr/local/lib | ||
ENV LIB | ||
DOC "gtk2 library to link with" | ||
DOC "gtk3 library to link with" | ||
NO_SYSTEM_ENVIRONMENT_PATH) | ||
|
||
|
||
IF (GTK_gtk_2_INCLUDE_DIR AND GTK_gdk_2_INCLUDE_DIR AND GTK_gdkconfig_2_INCLUDE_DIR) | ||
SET(GTK2_INCLUDE_DIR ${GTK_gtk_2_INCLUDE_DIR} ${GTK_gdk_2_INCLUDE_DIR} ${GTK_gdkconfig_2_INCLUDE_DIR}) | ||
list(REMOVE_DUPLICATES GTK2_INCLUDE_DIR) | ||
SET(GTK2_LIBRARIES ${GTK_gdk_pixbuf_2_LIBRARY} ${GTK_gdk_2_LIBRARY} ${GTK_gtk_2_LIBRARY}) | ||
list(REMOVE_DUPLICATES GTK2_LIBRARIES) | ||
SET(GTK2_STATIC_LIBRARIES ${GTK_gdk_pixbuf_2_STATIC_LIBRARY} ${GTK_gdk_2_STATIC_LIBRARY} ${GTK_gtk_2_STATIC_LIBRARY}) | ||
list(REMOVE_DUPLICATES GTK2_STATIC_LIBRARIES) | ||
SET(GTK2_FOUND TRUE) | ||
IF (GTK_gtk_3_INCLUDE_DIR AND GTK_gdk_3_INCLUDE_DIR AND GTK_gdkconfig_3_INCLUDE_DIR) | ||
SET(GTK3_INCLUDE_DIR ${GTK_gtk_3_INCLUDE_DIR} ${GTK_gdk_3_INCLUDE_DIR} ${GTK_gdkconfig_3_INCLUDE_DIR}) | ||
list(REMOVE_DUPLICATES GTK3_INCLUDE_DIR) | ||
SET(GTK3_LIBRARIES ${GTK_gdk_pixbuf_3_LIBRARY} ${GTK_gdk_3_LIBRARY} ${GTK_gtk_3_LIBRARY}) | ||
list(REMOVE_DUPLICATES GTK3_LIBRARIES) | ||
SET(GTK3_STATIC_LIBRARIES ${GTK_gdk_pixbuf_3_STATIC_LIBRARY} ${GTK_gdk_3_STATIC_LIBRARY} ${GTK_gtk_3_STATIC_LIBRARY}) | ||
list(REMOVE_DUPLICATES GTK3_STATIC_LIBRARIES) | ||
SET(GTK3_FOUND TRUE) | ||
|
||
|
||
message(STATUS "GTK2_INCLUDE_DIR: ${GTK2_INCLUDE_DIR}") | ||
message(STATUS "GTK2_LIBRARIES: ${GTK2_LIBRARIES}") | ||
message(STATUS "GTK2_STATIC_LIBRARIES: ${GTK2_STATIC_LIBRARIES}") | ||
ENDIF () | ||
message(STATUS "GTK3_INCLUDE_DIR: ${GTK3_INCLUDE_DIR}") | ||
message(STATUS "GTK3_LIBRARIES: ${GTK3_LIBRARIES}") | ||
message(STATUS "GTK3_STATIC_LIBRARIES: ${GTK3_STATIC_LIBRARIES}") | ||
ENDIF () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters