Commit Graph

202 Commits

Author SHA1 Message Date
SunBlack eaa3dd1eed Switch from SameMinorVersion to SameMajorVersion compatibility 2024-12-06 17:01:43 +01:00
Even Rouault 9b04b5af21
CMake: enable gdal_priv.h precompiled header if CMake USE_PRECOMPILED_HEADERS=ON
Can speed up cold builds by 30%

It is a bit experimental for now, so it isn't enabled by default, because:
- it currently causes linking issues with MSVC
- CLang Static Analyzer analysis has false positives with it
- Strange issue seen in the android CI configuration with a
  fatal error: file '/home/runner/work/gdal/gdal/build_android_cmake/CMakeFiles/gdal_priv_header.dir/cmake_pch.h' has been modified since the precompiled header '/home/runner/work/gdal/gdal/build_android_cmake/CMakeFiles/gdal_priv_header.dir/cmake_pch.h.pch' was built: mtime changed (https://github.com/rouault/gdal/actions/runs/12113235664/job/33767887119)
2024-12-02 19:19:05 +01:00
Even Rouault 1b4b295be6
Merge pull request #11314 from rouault/fix_11311
CMake: export -DGDAL_DEBUG as PUBLIC for debug builds
2024-11-26 19:26:06 +01:00
Even Rouault 78518bef37
CMake: Export -DGDAL_DEBUG as PUBLIC for debug builds
Fixes #11311
2024-11-20 22:22:19 +01:00
Kai Pastor 273c3f1e07 MSVC 64-bit cleanup 2024-11-20 21:20:07 +01:00
Even Rouault 9f2faa4c44
CMake: add detection of potential use of sse2neon.h, and a GDAL_ENABLE_ARM_NEON_OPTIMIZATIONS variable 2024-11-04 02:30:30 +01:00
Even Rouault bef27e19d2
CMake: add EMBED_RESOURCE_FILES and USE_ONLY_EMBEDDED_RESOURCE_FILES options 2024-10-15 15:14:07 +02:00
Even Rouault 5437e41889
gdal.cmake: bump GDAL_SOVERSION to 36 2024-10-15 13:17:20 +02:00
Even Rouault 28a00b0825
Make MapInfo driver optional or buildable as a plugin (if not builtin, Northwoord driver is not available, and Shapefile attribute indices too) 2024-09-22 06:01:01 +02:00
Even Rouault 59c0d1b979
CMake: move things related to setting compilation flags to cmake/helpers/GdalCompilationFlags.cmake 2024-06-27 18:20:56 +02:00
Even Rouault 99ebf44054
CMake: add html, man, latexpdf, doxygen, doxygen_check_warnings, clean_doc targets
Fixes #5484

Updated dev_documentation.rst:
```rst
Building documentation

Documentation can be generated with Makefile targets, from the ``doc`` subdirectory
of the GDAL source repository (only on Unix systems).

The following targets are available:

* ``html``: build HTML documentation into the ``doc/build/html`` directory, where
  they can be viewed using a web browser.

* ``man``: build MAN pages into the ``doc/build/man`` directory.

* ``latexpdf``: build PDF documentation into the ``doc/build/pdf`` directory

* ``doxygen``: regenerate API Doxygen XML and HTML output, that is used by the
  ``html`` target. Doxygen content is not automatically rebuilt when source files
  are modified, hence this target must be explicitly run to refresh it.

* ``doxygen_check_warnings``: same as ``doxygen``, but errors out when Doxygen
  emits a warning (the ``doxygen`` target is tolerant to Doxygen warnings).
  This can be useful to reproduce one of the continuous integration checks that
  verifies that there are no Doxygen warnings.
  Requires Doxygen >= 1.9.3 to be warning free.

* ``clean``: clean the ``doc/build`` directory.

It is also possible to run those targets as CMake targets. In that case, the
output directory will be the ``doc/build`` subdirectory of the CMake
build directory. To only clean the documentation, the ``clean_doc`` target can
be invoked.
Note: those CMake targets are only available if the CMake BUILD_DOCS=ON variable
is set (it is set by default if build preconditions are met, that is if Doxygen,
Sphinx and make are available)
```
2024-05-02 18:05:32 +02:00
Even Rouault 5cc7be72f6
Prepare for GDAL 3.9.0beta1 2024-04-22 13:22:41 +02:00
Even Rouault 125b551155
gdal.cmake: remove now useless checks since our minimum baseline is CMake 3.16 2024-03-25 22:39:01 +01:00
Even Rouault be22d3e7b0
gdal.cmake: add comment 2024-01-18 21:31:31 +01:00
Even Rouault ab5443b4d6
Move data/tms_*.json files to gcore/data 2024-01-16 17:29:56 +01:00
Even Rouault fd1a601bc6
Move data/template_tiles.mapml to swig/python/data/ 2024-01-16 17:29:56 +01:00
Even Rouault 7bfceb5fa5
Move cubewerx_extra.wkt, ecw_cs.wkt, epsg.wkt, esri_StatePlane_extra.wkt, ozi_*.csv, pci_*.csv, sateplace.csv to ogr/data/ 2024-01-16 17:29:55 +01:00
Even Rouault adc69dfb59
Move data/gt_datum.csv and data/gt_ellips.csv to frmts/nitf/data 2024-01-16 17:29:51 +01:00
Even Rouault 5832386b45
Move data/ogrvrt.xsd to ogr/ogrsf_frmts/vrt/data 2024-01-16 17:29:50 +01:00
Even Rouault e8a39c8e62
Move data/gdalvrt.xsd to frmts/vrt/data 2024-01-16 17:29:46 +01:00
Even Rouault 392b8612c8
Move gdalinfo, gdalmdiminfo, ogrinfo output.schema.json to apps/data 2024-01-16 17:29:45 +01:00
Even Rouault c962fbf71e
Move SXF data files to ogr/ogrsf_frmts/sxf/data 2024-01-16 17:29:41 +01:00
Even Rouault 11d4ce65bc
Move PDF data files to frmts/pdf/data 2024-01-16 17:29:36 +01:00
Even Rouault d5df9b8636
Move EEDA data files to frmts/eeda/data 2024-01-16 17:29:32 +01:00
Even Rouault 2b4cde9f08
Move PLScenes data files to ogr/ogrsf_frmts/plscenes/data 2024-01-16 17:29:32 +01:00
Even Rouault 1e4b46638b
Move netCDF data files to frmts/netcdf/data 2024-01-16 17:29:32 +01:00
Even Rouault b718220b0d
Move NITF data files to frmts/nitf/data 2024-01-16 17:29:32 +01:00
Even Rouault be9e61cd1f
Mode PDS4 data file to frmts/pds/data 2024-01-16 17:29:32 +01:00
Even Rouault 59b8a6abba
Move HDF5 data files to frmts/hdf5/data 2024-01-16 17:29:31 +01:00
Even Rouault db205c0d5c
Move OSM data files to ogr/ogrsf_frmts/osm/data 2024-01-16 17:29:31 +01:00
Even Rouault 238ae32b8f
Move DGN data files to ogr/ogrsf_frmts/dgn/data 2024-01-16 17:29:31 +01:00
Even Rouault 070beda455
Move S57 data files to ogr/ogrsf_frmts/s57/data 2024-01-16 17:29:31 +01:00
Even Rouault fe0c44b498
Move GMLAS data files to ogr/ogrsf_frmts/gmlas/data 2024-01-16 17:29:26 +01:00
Even Rouault dff97f5192
Move GML data files to ogr/ogrsf_frmts/gml/data 2024-01-16 17:29:21 +01:00
Even Rouault 33a7d6d6ef
Move data/grib2_* to frmts/grib/data 2024-01-16 17:29:21 +01:00
Even Rouault a20ce99c39
Move data/*.dxf to ogr/ogrsf_frmts/dxf/data 2024-01-16 17:29:21 +01:00
Even Rouault c21f674a5d
Move data/vdv452.xml and xsd to ogr/ogrsf_frmts/vdv/data 2024-01-16 17:29:21 +01:00
Even Rouault 98b379baf0
Move data/vicar.json to frmts/pds/data 2024-01-16 17:29:17 +01:00
Even Rouault e0cec5ec93
CMake: make it ready for GDAL_DATA being filled by each driver 2024-01-16 17:28:46 +01:00
Even Rouault bfed07022e
gdal.cmake: set -DDEBUG for CMAKE_BUILD_TYPE=Debug for Windows builds as well 2024-01-13 21:17:46 +01:00
Even Rouault b540d7cbff
GIF: make it plugin capable 2023-11-21 15:23:37 +01:00
Even Rouault ff68a2c40d
Prepare for 3.8.0beta1 2023-10-31 12:07:04 +01:00
Even Rouault bd1c534f66
gdal.cmake: automatically enable SQLite driver if -DOGR_ENABLE_DRIVER_GPKG=ON 2023-10-11 15:08:19 +02:00
Even Rouault b48d35a03f
OGCAPI: make sure OGR_ENABLE_DRIVER_GML is set when the driver is built 2023-06-22 13:07:25 +02:00
Even Rouault 65b1ead4ec
CMake: capture dependency of MBTiles driver to MVT 2023-05-29 00:46:28 +02:00
Even Rouault b0039c6480
gdal.cmake: install data/gfs.xsd and data/gml_registry.xsd 2023-05-02 20:11:47 +02:00
Even Rouault 397cc22229
Prepare for GDAL 3.7.0 2023-05-02 15:03:21 +02:00
Even Rouault 9d653e380a
CMake: fix wrong test when GDAL_SET_INSTALL_RELATIVE_RPATH is set 2023-01-20 13:12:38 +01:00
Even Rouault d6baebcc73
/vsizip/: add read support for Deflate64 (fixes #7013) 2023-01-03 22:38:56 +01:00
Even Rouault a8b0bdb3b7
GRIB tables: update to wmo-im/GRIB2@v30; adds data/grib2_table_4_2_0_21.csv data/grib2_table_4_2_2_6.csv 2022-12-30 21:34:34 +01:00