mirror of https://github.com/aseprite/aseprite.git
Merge 25c629f5ed into 577caa4793
This commit is contained in:
commit
72772c8024
|
|
@ -18,3 +18,6 @@ build
|
||||||
.build
|
.build
|
||||||
.deps
|
.deps
|
||||||
CMakeSettings.json
|
CMakeSettings.json
|
||||||
|
# third_party exclusions
|
||||||
|
third_party/tinyexif
|
||||||
|
third_party/tinyxml2
|
||||||
|
|
|
||||||
|
|
@ -75,9 +75,3 @@
|
||||||
[submodule "third_party/qoi"]
|
[submodule "third_party/qoi"]
|
||||||
path = third_party/qoi
|
path = third_party/qoi
|
||||||
url = https://github.com/aseprite/qoi.git
|
url = https://github.com/aseprite/qoi.git
|
||||||
[submodule "third_party/tinyxml2"]
|
|
||||||
path = third_party/tinyxml2
|
|
||||||
url = https://github.com/aseprite/tinyxml2.git
|
|
||||||
[submodule "third_party/TinyEXIF"]
|
|
||||||
path = third_party/TinyEXIF
|
|
||||||
url = https://github.com/aseprite/TinyEXIF.git
|
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,9 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/laf/CMakeLists.txt" OR
|
||||||
" https://github.com/aseprite/aseprite/blob/main/INSTALL.md#get-the-source-code")
|
" https://github.com/aseprite/aseprite/blob/main/INSTALL.md#get-the-source-code")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(CPM_SOURCE_CACHE third_party)
|
||||||
|
include(cmake/CPM.cmake)
|
||||||
|
|
||||||
# This is required for KDE/Qt destop integration, which sets
|
# This is required for KDE/Qt destop integration, which sets
|
||||||
# BUILD_SHARED_LIBS to TRUE by default
|
# BUILD_SHARED_LIBS to TRUE by default
|
||||||
set(BUILD_SHARED_LIBS off)
|
set(BUILD_SHARED_LIBS off)
|
||||||
|
|
@ -262,23 +265,25 @@ add_definitions(-DPNG_NO_MMX_CODE) # Do not use MMX optimizations in PNG code
|
||||||
|
|
||||||
# tinyxml2
|
# tinyxml2
|
||||||
if(USE_SHARED_TINYXML)
|
if(USE_SHARED_TINYXML)
|
||||||
find_library(TINYXML_LIBRARY NAMES tinyxml2)
|
find_package(tinyxml2 REQUIRED)
|
||||||
find_path(TINYXML_INCLUDE_DIR NAMES tinyxml2.h)
|
|
||||||
else()
|
else()
|
||||||
set(TINYXML_LIBRARY tinyxml2)
|
CPMAddPackage(
|
||||||
set(TINYXML_INCLUDE_DIR ${TINYXML_DIR})
|
URI "gh:aseprite/tinyxml2#312a8092245df393db14a0b2427457ed2ba75e1b"
|
||||||
|
OPTIONS "tinyxml2_BUILD_TESTING OFF"
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
include_directories(${TINYXML_INCLUDE_DIR})
|
|
||||||
|
|
||||||
# TinyEXIF
|
# TinyEXIF
|
||||||
if(USE_SHARED_TINYEXIF)
|
if(USE_SHARED_TINYEXIF)
|
||||||
find_library(TINYEXIF_LIBRARY NAMES TinyEXIF)
|
find_package(TinyEXIF REQUIRED)
|
||||||
find_path(TINYEXIF_INCLUDE_DIR NAMES TinyEXIF.h)
|
set(TINYEXIF_LIBRARY TinyEXIF)
|
||||||
else()
|
else()
|
||||||
|
CPMAddPackage(
|
||||||
|
URI "gh:aseprite/TinyEXIF#21d6cf762724260f8e5bcee4abdee5411ae47813"
|
||||||
|
OPTIONS "BUILD_SHARED_LIBS OFF" "BUILD_STATIC_LIBS ON" "LINK_CRT_STATIC_LIBS OFF" "BUILD_DEMO OFF"
|
||||||
|
)
|
||||||
set(TINYEXIF_LIBRARY TinyEXIFstatic)
|
set(TINYEXIF_LIBRARY TinyEXIFstatic)
|
||||||
set(TINYEXIF_INCLUDE_DIR ${TINYEXIF_DIR})
|
|
||||||
endif()
|
endif()
|
||||||
include_directories(${TINYEXIF_INCLUDE_DIR})
|
|
||||||
|
|
||||||
# pixman
|
# pixman
|
||||||
if(USE_SHARED_PIXMAN)
|
if(USE_SHARED_PIXMAN)
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -2,6 +2,7 @@ Aseprite uses the following open source projects:
|
||||||
|
|
||||||
* [Allegro 4](http://liballeg.org/)
|
* [Allegro 4](http://liballeg.org/)
|
||||||
* [Bresenham algorithm implementations by Alois Zingl](http://members.chello.at/easyfilter/bresenham.html)
|
* [Bresenham algorithm implementations by Alois Zingl](http://members.chello.at/easyfilter/bresenham.html)
|
||||||
|
* [CPM.cmake](https://github.com/cpm-cmake/CPM.cmake)
|
||||||
* [cityhash](https://github.com/google/cityhash)
|
* [cityhash](https://github.com/google/cityhash)
|
||||||
* [cmark](https://github.com/jgm/cmark)
|
* [cmark](https://github.com/jgm/cmark)
|
||||||
* [curl](http://curl.haxx.se/)
|
* [curl](http://curl.haxx.se/)
|
||||||
|
|
@ -82,6 +83,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# [CPM.cmake](https://github.com/cpm-cmake/CPM.cmake)
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright (c) 2019-2022 Lars Melchior and contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
```
|
||||||
|
|
||||||
# [cityhash](https://github.com/google/cityhash)
|
# [cityhash](https://github.com/google/cityhash)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -768,7 +768,7 @@ target_link_libraries(app-lib
|
||||||
updater-lib
|
updater-lib
|
||||||
undo
|
undo
|
||||||
${CMARK_LIBRARIES}
|
${CMARK_LIBRARIES}
|
||||||
${TINYXML_LIBRARY}
|
tinyxml2::tinyxml2
|
||||||
${TINYEXIF_LIBRARY}
|
${TINYEXIF_LIBRARY}
|
||||||
${GIF_LIBRARIES}
|
${GIF_LIBRARIES}
|
||||||
${PNG_LIBRARIES}
|
${PNG_LIBRARIES}
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ endif()
|
||||||
target_link_libraries(gen
|
target_link_libraries(gen
|
||||||
laf-base
|
laf-base
|
||||||
cfg-lib
|
cfg-lib
|
||||||
${TINYXML_LIBRARY})
|
tinyxml2::tinyxml2)
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ target_link_libraries(updater-lib laf-base ver-lib)
|
||||||
# portion of the library.
|
# portion of the library.
|
||||||
if(ENABLE_UPDATER)
|
if(ENABLE_UPDATER)
|
||||||
target_sources(updater-lib PRIVATE check_update.cpp)
|
target_sources(updater-lib PRIVATE check_update.cpp)
|
||||||
target_link_libraries(updater-lib net-lib ${TINYXML_LIBRARY})
|
target_link_libraries(updater-lib net-lib tinyxml2::tinyxml2)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -51,19 +51,6 @@ if(ENABLE_WEBP AND NOT LAF_BACKEND STREQUAL "skia")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT USE_SHARED_TINYXML)
|
|
||||||
set(tinyxml2_BUILD_TESTING OFF CACHE BOOL "Build tests for tinyxml2")
|
|
||||||
add_subdirectory(tinyxml2)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT USE_SHARED_TINYEXIF)
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "build as shared library")
|
|
||||||
set(BUILD_STATIC_LIBS ON CACHE BOOL "build as static library")
|
|
||||||
set(LINK_CRT_STATIC_LIBS OFF CACHE BOOL "link CRT static library")
|
|
||||||
set(BUILD_DEMO OFF CACHE BOOL "build demo binary")
|
|
||||||
add_subdirectory(TinyEXIF)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(REQUIRE_CURL AND NOT USE_SHARED_CURL)
|
if(REQUIRE_CURL AND NOT USE_SHARED_CURL)
|
||||||
set(BUILD_RELEASE_DEBUG_DIRS ON BOOL)
|
set(BUILD_RELEASE_DEBUG_DIRS ON BOOL)
|
||||||
set(BUILD_CURL_EXE OFF CACHE BOOL "Set to ON to build curl executable.")
|
set(BUILD_CURL_EXE OFF CACHE BOOL "Set to ON to build curl executable.")
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 21d6cf762724260f8e5bcee4abdee5411ae47813
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 312a8092245df393db14a0b2427457ed2ba75e1b
|
|
||||||
Loading…
Reference in New Issue