...

Text file src/github.com/googleapis/enterprise-certificate-proxy/build/scripts/linux_amd64.sh

Documentation: github.com/googleapis/enterprise-certificate-proxy/build/scripts

     1#!/bin/bash
     2
     3# Copyright 2022 Google LLC.
     4# Licensed under the Apache License, Version 2.0 (the "License");
     5# you may not use this file except in compliance with the License.
     6# You may obtain a copy of the License at
     7#
     8#     https://www.apache.org/licenses/LICENSE-2.0
     9#
    10# Unless required by applicable law or agreed to in writing, software
    11# distributed under the License is distributed on an "AS IS" BASIS,
    12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13# See the License for the specific language governing permissions and
    14# limitations under the License.
    15
    16# Create a folder to hold the binaries
    17rm -rf ./build/bin/linux_amd64
    18mkdir -p ./build/bin/linux_amd64
    19
    20# Build the signer library
    21go build -buildmode=c-shared -o build/bin/linux_amd64/libecp.so cshared/main.go
    22rm build/bin/linux_amd64/libecp.h
    23
    24# Build the signer binary
    25cd ./internal/signer/linux
    26go build
    27mv linux ./../../../build/bin/linux_amd64/ecp
    28cd ./../../..

View as plain text