diff options
Diffstat (limited to 'third_party/libpng/SConscript')
-rw-r--r-- | third_party/libpng/SConscript | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/third_party/libpng/SConscript b/third_party/libpng/SConscript index ad6bdf9..dd3066a 100644 --- a/third_party/libpng/SConscript +++ b/third_party/libpng/SConscript @@ -27,6 +27,9 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# TODO(keunwoo): Use better cross-platform abstraction; see chrome/SConstruct
+Import('PLATFORM')
+
Import('env')
env = env.Clone()
@@ -38,11 +41,15 @@ env.Prepend( ],
)
+if PLATFORM == 'WINDOWS':
+ env.Append(
+ CCFLAGS = [
+ '/TP',
+ '/wd4800',
+ ],
+ )
+
env.Append(
- CCFLAGS = [
- '/TP',
- '/wd4800',
- ],
CPPDEFINES = [
'PNG_USER_CONFIG',
'CHROME_PNG_WRITE_SUPPORT',
|