Skip to content

Commit

Permalink
FLTK main merged, 2023-02-18-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rageworx committed Feb 18, 2023
1 parent 43095a4 commit c70948d
Show file tree
Hide file tree
Showing 329 changed files with 23,583 additions and 8,451 deletions.
27 changes: 19 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
# Files to be ignored by Git (do not commit)
#

*.o
# Ignore everywhere, also in subdirectories

*.bck
*.exe
*.o
**/.DS_Store

# CMake build artifacts if built in source - not recommended, but anyway

# CMake
bin/
**/cmake_install.cmake
**/CMakeCache.txt
Expand All @@ -19,13 +24,16 @@ FLTKConfig.cmake
etc/FLTKConfig.cmake

# MSVC

*.tlog
.vs/

# VS Code (Visual Studio Code) Editor

.vscode/

# /

/autom4te*.cache
/build
/clang
Expand All @@ -38,20 +46,19 @@ etc/FLTKConfig.cmake
/fltk.list
/fltk.spec
/makeinclude
/*.bck
/TAGS

# /FL

/FL/fl_config.h
/FL/Makefile
/FL/*.bck

# /cairo/

/cairo/*.so*
/cairo/*.dll

# /documentation/
# see documentation/.gitignore
# /lib/

# /examples/
# see examples/.gitignore
Expand Down Expand Up @@ -129,13 +136,14 @@ etc/FLTKConfig.cmake
/lib/*.a

# /misc/

/misc/doxystar

# /src/

/src/*.so*
/src/*.sl*
/src/*.a
/src/*.bck
/src/*.dll
/src/*.sav
/src/*.dylib
Expand All @@ -153,7 +161,10 @@ src/xdg-shell-protocol.c

# libdecor/build/demo
# libdecor/build/egl

/out/build/x64-Debug/.cmake/api/v1/query/client-MicrosoftVS/query.json
/out/build/x64-Debug
/CMakeSettings.json
/CppProperties.json
**/.DS_Store
*.back
*.bak
Expand Down
4 changes: 3 additions & 1 deletion CMake/fl_create_example.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ function (CREATE_EXAMPLE NAME SOURCES LIBRARIES)
"${CMAKE_CURRENT_SOURCE_DIR}/mac-resources/${PLIST}")
endif()

string(REPLACE "_" "-" FLTK_BUNDLE_ID "org.fltk.${TARGET_NAME}")
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "${TARGET_NAME}")
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.fltk.${TARGET_NAME}")
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "${FLTK_BUNDLE_ID}")
set_target_properties (${TARGET_NAME} PROPERTIES XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "${FLTK_BUNDLE_ID}")

if (ICON_NAME)
set_target_properties (${TARGET_NAME} PROPERTIES MACOSX_BUNDLE_ICON_FILE ${ICON_NAME})
Expand Down
3 changes: 3 additions & 0 deletions CMake/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ if (UNIX OR MSYS OR MINGW)
if (FLTK_BUILD_FLUID)
INSTALL_MAN (fluid 1)
endif (FLTK_BUILD_FLUID)
if (FLTK_BUILD_FLTK_OPTIONS)
INSTALL_MAN (fltk-options 1)
endif (FLTK_BUILD_FLTK_OPTIONS)
INSTALL_MAN (fltk-config 1)
INSTALL_MAN (fltk 3)

Expand Down
7 changes: 4 additions & 3 deletions CMake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,10 @@ option (OPTION_BUILD_SHARED_LIBS
option (OPTION_PRINT_SUPPORT "allow print support" ON)
option (OPTION_FILESYSTEM_SUPPORT "allow file system support" ON)

option (FLTK_BUILD_FLUID "Build FLUID" ON)
option (FLTK_BUILD_TEST "Build test/demo programs" ON)
option (FLTK_BUILD_EXAMPLES "Build example programs" OFF)
option (FLTK_BUILD_FLUID "Build FLUID" ON)
option (FLTK_BUILD_FLTK_OPTIONS "Build fltk-options" ON)
option (FLTK_BUILD_TEST "Build test/demo programs" ON)
option (FLTK_BUILD_EXAMPLES "Build example programs" OFF)

if (DEFINED OPTION_BUILD_EXAMPLES)
message (WARNING
Expand Down
5 changes: 1 addition & 4 deletions CMake/setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# CMakeLists.txt to build the FLTK project using CMake (www.cmake.org)
# Originally written by Michael Surette
#
# Copyright 1998-2022 by Bill Spitzak and others.
# Copyright 1998-2023 by Bill Spitzak and others.
#
# This library is free software. Distribution and use rights are outlined in
# the file "COPYING" which should have been included with this file. If this
Expand Down Expand Up @@ -97,13 +97,10 @@ if (APPLE)
set (HAVE_SCANDIR 1)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
if (OPTION_APPLE_X11)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__APPLE__")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U__APPLE__")
if (NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0)) # a.k.a. macOS version ≥ 10.13
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LIBCPP_HAS_THREAD_API_PTHREAD")
endif (NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0))
else ()
set (__APPLE_QUARTZ__ 1)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Cocoa")
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -framework Cocoa")
endif (OPTION_APPLE_X11)
Expand Down
18 changes: 16 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ if (FLTK_BUILD_FLUID)
add_subdirectory (fluid)
endif (FLTK_BUILD_FLUID)

#######################################################################
# build fltk-options
#######################################################################

if (FLTK_BUILD_FLTK_OPTIONS)
add_subdirectory (fltk-options)
endif (FLTK_BUILD_FLTK_OPTIONS)

#######################################################################
# variables shared by export and install
# export.cmake creates configuration files for direct use in a built but uninstalled FLTK
Expand Down Expand Up @@ -214,9 +222,15 @@ endif ()

if (FLTK_BUILD_FLUID)
message (STATUS "FLUID will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fluid")
else ()
else ()
message (STATUS "FLUID will not be built (set FLTK_BUILD_FLUID=ON to build)")
endif ()
endif ()

if (FLTK_BUILD_FLTK_OPTIONS)
message (STATUS "fltk-options will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/fltk-options")
else ()
message (STATUS "fltk-options will not be built (set FLTK_BUILD_FLTK_OPTIONS=ON to build)")
endif ()

if (FLTK_BUILD_TEST)
message (STATUS "Test programs will be built in ${CMAKE_CURRENT_BINARY_DIR}/bin/test")
Expand Down
38 changes: 0 additions & 38 deletions DartConfig.cmake

This file was deleted.

Loading

1 comment on commit c70948d

@rageworx
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes

Please sign in to comment.