-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[makefile] Lib with Smart Card Connector application (#991)
Create a separate static library containing the Connector's application.cc logic, as opposed to compiling this file 3 times for each target that needed it (executable_module, cpp_unittests, js_to_cxx_tests). This reduces duplication across different makefiles and should slightly improve overall build times. This contributes to #869 as it introduced one extra recompilation of the same source.
- Loading branch information
1 parent
9226250
commit 12c780f
Showing
6 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/out-artifacts-asan_testing/ | ||
/out-artifacts-coverage/ | ||
/out-artifacts-emscripten/ | ||
/pnacl/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 2023 Google Inc. 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. | ||
|
||
# Builds the static library with the Smart Card Connector's core C/C++ | ||
# functionality. | ||
|
||
|
||
TARGET := smart_card_connector_application | ||
|
||
include ../../../common/make/common.mk | ||
include $(ROOT_PATH)/common/make/executable_building.mk | ||
|
||
|
||
SOURCES := \ | ||
$(ROOT_PATH)/smart_card_connector_app/src/application.cc \ | ||
|
||
CXXFLAGS := \ | ||
-I$(ROOT_PATH) \ | ||
-I$(ROOT_PATH)/common/cpp/src \ | ||
-I$(ROOT_PATH)/third_party/pcsc-lite/naclport/server/src \ | ||
-I$(ROOT_PATH)/third_party/pcsc-lite/naclport/server_clients_management/src \ | ||
-Wall \ | ||
-Werror \ | ||
-Wextra \ | ||
-Wno-zero-length-array \ | ||
-pedantic \ | ||
-std=$(CXX_DIALECT) \ | ||
|
||
# Rules for compiling source files and linking them into a static library. | ||
$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CXXFLAGS)))) | ||
$(eval $(call LIB_RULE,$(TARGET),$(SOURCES))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters