Skip to content

Commit 49aedd2

Browse files
authored
Merge pull request #31 from zisoft/gtk4_compile
first changes for macOS
2 parents 237844e + 95d43c6 commit 49aedd2

File tree

8 files changed

+178
-210
lines changed

8 files changed

+178
-210
lines changed

DefineOptions.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ else ()
4444
set(TESTBUILD_OPENCL_PROGRAMS OFF)
4545
endif ()
4646

47-
if(APPLE)
48-
option(USE_MAC_INTEGRATION "Enable macOS integration" ON)
49-
else(APPLE)
50-
set(USE_MAC_INTEGRATION OFF)
51-
endif(APPLE)
47+
# if(APPLE)
48+
# option(USE_MAC_INTEGRATION "Enable macOS integration" ON)
49+
# else(APPLE)
50+
# set(USE_MAC_INTEGRATION OFF)
51+
# endif(APPLE)

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ CMAKE_OPTIONS_FROM_CMDLINE=""
3535

3636
PRINT_HELP=0
3737

38-
FEATURES="CAMERA COLORD GRAPHICSMAGICK IMAGEMAGICK JXL KWALLET LIBSECRET LUA MAC_INTEGRATION MAP OPENCL OPENEXR OPENMP UNITY WEBP"
38+
FEATURES="CAMERA COLORD GRAPHICSMAGICK IMAGEMAGICK JXL KWALLET LIBSECRET LUA MAP OPENCL OPENEXR OPENMP UNITY WEBP"
3939

4040
# prepare a lowercase version with a space before and after
4141
# it's very important for parse_feature, has no impact in for loop expansions

cmake/modules/FindMacIntegration.cmake

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/CMakeLists.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -530,20 +530,20 @@ if(WIN32)
530530
add_definitions("-DHAVE_WINDOWS_CREDENTIALS")
531531
endif(WIN32)
532532

533-
if(USE_MAC_INTEGRATION)
534-
find_package(MacIntegration)
535-
if(MacIntegration_FOUND)
536-
include_directories(SYSTEM ${MacIntegration_INCLUDE_DIRS})
537-
list(APPEND LIBS ${MacIntegration_LIBRARIES})
538-
add_definitions("-DMAC_INTEGRATION")
539-
find_package(P11Kit)
540-
if(P11Kit_FOUND)
541-
include_directories(SYSTEM ${P11Kit_INCLUDE_DIRS})
542-
list(APPEND LIBS ${P11Kit_LINK_LIBRARIES})
543-
add_definitions("-DHAVE_P11KIT")
544-
endif()
545-
endif(MacIntegration_FOUND)
546-
endif(USE_MAC_INTEGRATION)
533+
# if(USE_MAC_INTEGRATION)
534+
# find_package(MacIntegration)
535+
# if(MacIntegration_FOUND)
536+
# include_directories(SYSTEM ${MacIntegration_INCLUDE_DIRS})
537+
# list(APPEND LIBS ${MacIntegration_LIBRARIES})
538+
# add_definitions("-DMAC_INTEGRATION")
539+
# find_package(P11Kit)
540+
# if(P11Kit_FOUND)
541+
# include_directories(SYSTEM ${P11Kit_INCLUDE_DIRS})
542+
# list(APPEND LIBS ${P11Kit_LINK_LIBRARIES})
543+
# add_definitions("-DHAVE_P11KIT")
544+
# endif()
545+
# endif(MacIntegration_FOUND)
546+
# endif(USE_MAC_INTEGRATION)
547547

548548
if(USE_UNITY)
549549
find_package(Unity)

src/common/darktable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,6 +1427,7 @@ typedef union GdkEventOld
14271427
#define gtk_layout_new(...) NULL
14281428
#define gtk_layout_put(...)
14291429
#define gtk_main_do_event(...)
1430+
#define gtk_menu_bar_new(...) NULL
14301431
#define gtk_menu_item_get_label(...) NULL
14311432
#define gtk_menu_item_get_submenu(...) NULL
14321433
#define gtk_menu_item_new_with_label(...) NULL

src/control/progress.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
#ifdef HAVE_UNITY
2424
#include <unity/unity/unity.h>
2525
#endif
26-
#ifdef MAC_INTEGRATION
27-
#include <gtkosxapplication.h>
28-
#endif
2926

3027
#ifdef _WIN32
3128
#include <gdk/gdkwin32.h>

0 commit comments

Comments
 (0)