licence added

This commit is contained in:
Katarzyna Miernikiewicz 2020-09-08 11:03:02 +00:00
parent 78b8e130d7
commit 9f0bdf1c63
3 changed files with 14 additions and 7 deletions

View File

@ -32,7 +32,7 @@ target_link_libraries(jsonnet_helper
libjsonnet_for_binaries libjsonnet_for_binaries
) )
set(SAPI_ROOT "/usr/local/google/home/kasiamm/sandboxed-api" CACHE PATH "Path to the Sandboxed API source tree") set(SAPI_ROOT "../.." CACHE PATH "Path to the Sandboxed API source tree")
set(SAPI_ENABLE_EXAMPLES OFF CACHE BOOL "") set(SAPI_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(SAPI_ENABLE_TESTS OFF CACHE BOOL "") set(SAPI_ENABLE_TESTS OFF CACHE BOOL "")

View File

@ -1,8 +1,16 @@
# Copyright 2020 Google LLC
#target_include_directories(jsonnet_helper PUBLIC #
# "${CMAKE_CURRENT_SOURCE_DIR}/jsonnet" # Licensed under the Apache License, Version 2.0 (the "License");
# "${PROJECT_BINARY_DIR}" # 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.
add_executable(jsonnet_sandboxed add_executable(jsonnet_sandboxed
jsonnet_example.cc jsonnet_example.cc

View File

@ -25,7 +25,6 @@ class JsonnetSapiSandbox : public JsonnetSandbox {
public: public:
explicit JsonnetSapiSandbox(std::string in_file, std::string out_file) explicit JsonnetSapiSandbox(std::string in_file, std::string out_file)
: in_file_(std::move(in_file)), out_file_(std::move(out_file)) {} : in_file_(std::move(in_file)), out_file_(std::move(out_file)) {}
// explicit JsonnetSapiSandbox() {};
std::unique_ptr<sandbox2::Policy> ModifyPolicy( std::unique_ptr<sandbox2::Policy> ModifyPolicy(
sandbox2::PolicyBuilder*) override { sandbox2::PolicyBuilder*) override {