Skip to content

Commit

Permalink
Move executables from json to new separate crate
Browse files Browse the repository at this point in the history
  • Loading branch information
onox committed Jul 28, 2024
1 parent db5b3c7 commit 4163149
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 22 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ALR_BUILD = alr build --development --profiles="*=development"

build:
cd json && $(ALR_BUILD)
cd tools && $(ALR_BUILD)

clean:
-gnatprove --clean -P json/json.gpr
Expand Down
3 changes: 0 additions & 3 deletions json/alire.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ website = "https://github.com/onox/json-ada"
licenses = "Apache-2.0"
tags = ["json"]

#executables = ["pretty_print"]
#project-files = ["json.gpr", "json_pretty_print.gpr"]

project-files = ["json.gpr"]

authors = ["onox"]
Expand Down
19 changes: 0 additions & 19 deletions json/json_pretty_print.gpr

This file was deleted.

23 changes: 23 additions & 0 deletions tools/alire.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name = "json_tools"
description = "Tools for json-ada"
version = "5.0.3"
website = "https://github.com/onox/json-ada"
licenses = "Apache-2.0"
tags = ["json"]

executables = ["pretty_print"]
project-files = ["json_tools.gpr"]

authors = ["onox"]
maintainers = ["onox <denkpadje@gmail.com>"]
maintainers-logins = ["onox"]

[[depends-on]]
json = "^5.0.3"

[[pins]]
json = { path = "../json" }

[build-switches]
validation.compile_checks = "warnings"
"*".style_checks = ["-gnatygAOM120-Is"]
2 changes: 2 additions & 0 deletions tools/gnat.adc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pragma Restrictions (No_Obsolescent_Features);
pragma Profile (No_Implementation_Extensions);
34 changes: 34 additions & 0 deletions tools/json_tools.gpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <denkpadje@gmail.com>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.

with "json";
with "config/json_tools_config";

project JSON_Tools is

for Create_Missing_Dirs use "True";

for Source_Dirs use ("src");
for Object_Dir use "build/obj/" & JSON_Tools_Config.Build_Profile;

for Exec_Dir use "build/bin";

for Main use ("pretty_print.adb");

package Compiler renames JSON.Compiler;
package Binder renames JSON.Binder;

end JSON_Tools;
File renamed without changes.

0 comments on commit 4163149

Please sign in to comment.