forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the pdf build target a component.
The code in pdf/ can be a GN component instead of a static_library. Add a PDF_EXPORT macro and set boundaries on what can be used from external callers. Change-Id: Ib855736f145c5708b8c62c7fd0e3622827bcc623 Reviewed-on: https://chromium-review.googlesource.com/879853 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#531314}
- Loading branch information
Showing
5 changed files
with
88 additions
and
46 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
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,29 @@ | ||
// Copyright 2018 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef PDF_PDF_EXPORT_H_ | ||
#define PDF_PDF_EXPORT_H_ | ||
|
||
#if defined(COMPONENT_BUILD) | ||
#if defined(WIN32) | ||
|
||
#if defined(PDF_IMPLEMENTATION) | ||
#define PDF_EXPORT __declspec(dllexport) | ||
#else | ||
#define PDF_EXPORT __declspec(dllimport) | ||
#endif // defined(PDF_IMPLEMENTATION) | ||
|
||
#else // defined(WIN32) | ||
#if defined(PDF_IMPLEMENTATION) | ||
#define PDF_EXPORT __attribute__((visibility("default"))) | ||
#else | ||
#define PDF_EXPORT | ||
#endif | ||
#endif | ||
|
||
#else // defined(COMPONENT_BUILD) | ||
#define PDF_EXPORT | ||
#endif | ||
|
||
#endif // PDF_PDF_EXPORT_H_ |
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