summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: Don't copy test data in the build directoryjson-glib-1-2Emmanuele Bassi2017-04-011-9/+6
| | | | | | | | | GTest can use environment variables to find the test data in the source and build directory, so we don't need to copy files around using Python scripts. (cherry picked from commit 9642e81c73093e4dde11f8c047a41771b884e3d7) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* build: Use the Meson 'python3' moduleEmmanuele Bassi2017-04-011-1/+1
| | | | | | | | | This allows finding Python3 on Windows, in order to build and run the tests. https://bugzilla.gnome.org/show_bug.cgi?id=780550 (cherry picked from commit 59762fabeae64f9b80993729ef38df730686a3f8) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Bump up the required version of MesonEmmanuele Bassi2017-04-011-1/+1
| | | | | (cherry picked from commit 373711d04fa4d7a29599f41a65ac303f99d34278) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* build: Fix the installed test wrapper fileEmmanuele Bassi2017-03-291-1/+1
| | | | | We need to point to the binary, but we're using the wrong name for the Exec key.
* Post-release version bump to 1.2.9Emmanuele Bassi2017-03-182-2/+2
|
* Release JSON-GLib 1.2.81.2.8Emmanuele Bassi2017-03-182-2/+2
|
* Update the Git ignore fileEmmanuele Bassi2017-03-181-21/+20
| | | | The `reference` path has been removed.
* doc: Update the READMEEmmanuele Bassi2017-03-181-13/+20
| | | | | Replace the build instruction and dependencies to point at Meson instead of autotools.
* build: Sync the interface age with the versionEmmanuele Bassi2017-03-181-4/+10
| | | | | Like we do in the Meson build, the Autotools build should reset the interface age every time we do a development cycle.
* doc: Use 'plain' language for JSON snippetsEmmanuele Bassi2017-03-181-3/+4
|
* doc: Link the bug reporting URI in the API referenceEmmanuele Bassi2017-03-181-0/+5
|
* Use the appropriate values to initialize AutotoolsEmmanuele Bassi2017-03-141-2/+2
| | | | | | The package name is "JSON-GLib"; the tarball name is "json-glib". The wiki page has also been moved.
* Move the reference build down one levelEmmanuele Bassi2017-03-1414-92/+75
| | | | | There's no point in having the API reference in its own sub-directory: it's the only documentation we have.
* build: Fix soversion for Meson buildsEmmanuele Bassi2017-03-141-6/+6
| | | | | | | | | | | | | | | During stable cycles we want the interface age to match the micro version, as there are no symbol additions if the minor version is an even number. Conversely, we want the interface age to reset to 0, as there are no expectations of ABI compatibility for newly added symbols. The current check uses the micro version, instead of the odd version, which breaks the logic above. This ensures that the soname generated via the Meson build is the same as the one generated by the Autotools one.
* Visual Studio builds: Copy config.h.win32 to $(srcroot)\json-glibChun-wei Fan2017-03-144-8/+8
| | | | This follows the autotools builds and Meson builds.
* build: Generate the config.h file under json-glibEmmanuele Bassi2017-03-131-1/+1
| | | | Ensure that autotools and Meson behave similarly.
* build: Ignore 'config.h' when building the API referenceEmmanuele Bassi2017-03-132-0/+3
| | | | It's an internal header.
* docs: Override version macrosEmmanuele Bassi2017-03-132-1/+14
| | | | | We don't need to show what they evaluate to, given that the value changes with every release.
* docs: Reference the JSON-GLib headerEmmanuele Bassi2017-03-131-0/+2
| | | | | The API reference should list the header that user code should include in order to use the API.
* docs: Add links to online resourcesEmmanuele Bassi2017-03-131-6/+18
| | | | | Link the built API reference on developer.gnome.org, and the JSON website.
* build: Really require the same pkg-config modulesEmmanuele Bassi2017-03-131-1/+1
|
* build: Require the same modules for Meson and AutotoolsEmmanuele Bassi2017-03-132-2/+2
| | | | We depend on gio-2.0, which strings along glib-2.0 and gobject-2.0.
* Fix the generated pkg-config file with MesonEmmanuele Bassi2017-03-131-1/+1
| | | | We need to specify the sub-directory for the inclusion directive.
* build: Add missing argument to the introspection scannerEmmanuele Bassi2017-03-131-10/+16
| | | | | | The autotools build specifies the include header with the --c-include argument for g-ir-scanner, so we need to do the same when building with Meson.
* Ensure that introspection scans all the headersEmmanuele Bassi2017-03-131-6/+6
| | | | | We have a couple of generated header files, which means we need to list them as sources for the introspection scanner.
* build: Reduce the internal dependenciesEmmanuele Bassi2017-03-131-8/+10
| | | | | | | We don't need to make internal targets depend on generated sources, just on the generated header files. Depending on the generated sources will cause Meson to compile the generated sources once for each internal target.
* Add missing header in the Meson file listingEmmanuele Bassi2017-03-131-0/+1
| | | | The single include 'json-glib.h' header is missing.
* Remove dependency on json-version.hEmmanuele Bassi2017-03-131-11/+11
| | | | The file is generated at configuration time.
* Post-release version bump to 1.2.7Emmanuele Bassi2017-03-132-3/+3
|
* Release JSON-GLib 1.2.61.2.6Emmanuele Bassi2017-03-132-3/+3
| | | | | | Brown paper bag release to re-generate the dist tarball. See: https://bugzilla.gnome.org/show_bug.cgi?id=779980
* Install testsEmmanuele Bassi2017-03-134-1/+43
| | | | | | We should install our tests in order to get them executed in environments like GNOME Continuous and other continuous delivery systems.
* build: install toolsIgor Gnatenko2017-03-131-1/+1
| | | | Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
* build: convert interface_age to intIgor Gnatenko2017-03-131-1/+1
| | | | | | | Meson encountered an error in file meson.build, line 30, column 0: Subtraction works only with integers. Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org>
* Post-release version bump to 1.2.5Emmanuele Bassi2017-03-132-3/+3
|
* Release JSON-GLib 1.2.41.2.4Emmanuele Bassi2017-03-133-3/+7
|
* doc: Use package_versionEmmanuele Bassi2017-03-131-1/+1
| | | | | This is shared between the autotools and the Meson build, whereas package_api_version is Meson-only.
* Add various compiler and linker flags to the Meson buildEmmanuele Bassi2017-03-132-4/+87
| | | | | | | We want more warnings to be printed out when build json-glib. We also want to take advantage of linker flags like z,relro and z,now, as well as -Bsymbolic-functions.
* Annotate internal set_error() wrapperEmmanuele Bassi2017-03-131-0/+1
| | | | | | | We need to tell the compiler that the 3rd argument is a format-like string, and that the arguments for that come in the variadic arguments list; this allows compilers like GCC to do validation on the format string itself, and avoid a whole class of bugs.
* Include the Meson build files into the autotools oneEmmanuele Bassi2017-03-131-1/+10
| | | | This way we can build a dist tarball generated by autotools with Meson.
* Add i18n support to the Meson buildEmmanuele Bassi2017-03-132-0/+86
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=773603
* Generate the man pages for json-glib tools in MesonEmmanuele Bassi2017-03-133-0/+36
| | | | | | A simple case of calling xsltproc with the right doctype. https://bugzilla.gnome.org/show_bug.cgi?id=773603
* Build API reference with MesonEmmanuele Bassi2017-03-137-8/+74
| | | | | | We can use the gnome module to generate the JSON-GLib API reference. https://bugzilla.gnome.org/show_bug.cgi?id=773603
* Update the Meson buildEmmanuele Bassi2017-03-133-73/+78
| | | | | | Clean up the coding style, and make it a bit more idiomatic. https://bugzilla.gnome.org/show_bug.cgi?id=773603
* meson: Add support for building with the meson build systemThibault Saunier2017-03-135-0/+229
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=773603
* Quell a compiler warningEmmanuele Bassi2017-03-131-1/+1
| | | | Original patch by: Thibault Saunier <tsaunier@gnome.org>
* Don't loose decimal in whole-double -> string conversiondjcb2017-03-133-2/+29
| | | | | | | | | | | | | When converting json to its string representation, whole-doubles (such as 1.0) would be converted into strings without decimals ("1"). That can be inconvenient e.g. when converting from/to GVariants. To avoid this, append '.0' to the string representation for doubles if they lost their decimals in the conversion. Also add / update unit tests for this. https://bugzilla.gnome.org/show_bug.cgi?id=753763
* json-glib: Remove unused symbolsThibault Saunier2017-03-131-19/+0
| | | | | | Or compilation fails with -Werror https://bugzilla.gnome.org/show_bug.cgi?id=773604
* Stop providing our own marshaller and use the generic oneThibault Saunier2017-03-134-31/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=773603
* Only seal arrays and objects when a parser is immutableEmmanuele Bassi2017-03-131-2/+4
| | | | | | | We seal nodes conditionally on the :immutable property, but we are sealing their contents unconditionally. https://bugzilla.gnome.org/show_bug.cgi?id=779970
* Visual Studio builds: Generate .pc filesChun-wei Fan2017-03-1312-22/+100
| | | | | | | Generate the .pc files for the package upon "install", so that we can use pkg-config to find this package. This will help in situations like introspection or for build systems that make use of pkg-config to find dependencies.