Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tidy] Shift Command to its own lib directory #97

Merged
merged 15 commits into from
Aug 20, 2021
Next Next commit
Added initial generator.fbs
MIMO file generator using custom commands
coder137 committed Aug 18, 2021
commit 8bb9cba1e827d7f87d5887e309bee95d6b70bebd
2 changes: 2 additions & 0 deletions buildcc/schema/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -3,10 +3,12 @@ set(SCHEMA_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/generated CACHE PATH "Generate

set(FBS_FILES
${CMAKE_CURRENT_SOURCE_DIR}/path.fbs
${CMAKE_CURRENT_SOURCE_DIR}/generator.fbs
${CMAKE_CURRENT_SOURCE_DIR}/target.fbs
)
set(FBS_GEN_FILES
${SCHEMA_BUILD_DIR}/path_generated.h
${SCHEMA_BUILD_DIR}/generator_generated.h
${SCHEMA_BUILD_DIR}/target_generated.h
)
set(FBS_GEN_OPTIONS
29 changes: 29 additions & 0 deletions buildcc/schema/generator.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2021 Niket Naidu. All rights reserved.
//
// 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.

include "path.fbs";

namespace schema.internal;

table Generator {
name:string (key);

// Input and output files are both tracked via timestamp
input:[Path];
output:[Path];

command:[string];
}

root_type Generator;