Skip to content

Commit

Permalink
Link to the views module as static library.
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jul 9, 2013
1 parent 9e3772f commit 7dae2c4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
11 changes: 11 additions & 0 deletions atom.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@
'export_dependent_settings': [
'vendor/brightray/brightray.gyp:brightray',
],
'conditions': [
['OS=="win"', {
'link_settings': {
'libraries': [
'-limm32.lib',
'-loleacc.lib',
'<(atom_source_root)/<(libchromiumcontent_library_dir)/views_chromiumcontent.lib',
],
},
}],
],
},
{
'target_name': 'generated_sources',
Expand Down
18 changes: 18 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@
4800, # (v8.h) forcing value to bool 'true' or 'false'
4819, # The file contains a character that cannot be represented in the current code page
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalOptions': [
# ATL 8.0 included in WDK 7.1 makes the linker to generate following
# warnings:
# - warning LNK4254: section 'ATL' (50000040) merged into
# '.rdata' (40000040) with different attributes
# - warning LNK4078: multiple 'ATL' sections found with
# different attributes
'/ignore:4254',
'/ignore:4078',
# views_chromiumcontent.lib generates this warning because it's
# symobls are defined as dllexport but used as static library:
# - warning LNK4217: locally defined symbol imported in function
'/ignore:4217',
],
},
},
},
'conditions': [
# Settings to compile with clang under OS X.
Expand Down
2 changes: 1 addition & 1 deletion vendor/brightray

0 comments on commit 7dae2c4

Please sign in to comment.