win: Fix linking problem on x64
This commit is contained in:
parent
f32cd5a35e
commit
aa07d5e557
1 changed files with 43 additions and 20 deletions
63
common.gypi
63
common.gypi
|
@ -107,27 +107,50 @@
|
||||||
'OTHER_LDFLAGS': [ '-Wl,-all_load' ],
|
'OTHER_LDFLAGS': [ '-Wl,-all_load' ],
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
['OS=="win" and libchromiumcontent_component==0', {
|
['OS=="win"', {
|
||||||
'libraries': [ '-lwinmm.lib' ],
|
'libraries': [ '-lwinmm.lib' ],
|
||||||
'msvs_settings': {
|
'conditions': [
|
||||||
'VCLinkerTool': {
|
['libchromiumcontent_component==0', {
|
||||||
# There is nothing like "whole-archive" on Windows, so we
|
'variables': {
|
||||||
# have to manually force some objets files to be included
|
'conditions': [
|
||||||
# by referencing them.
|
['target_arch=="ia32"', {
|
||||||
'ForceSymbolReferences': [
|
'reference_symbols': [
|
||||||
'_u_errorName_52',
|
'_u_errorName_52',
|
||||||
'_ubidi_setPara_52',
|
'_ubidi_setPara_52',
|
||||||
'_ucsdet_getName_52',
|
'_ucsdet_getName_52',
|
||||||
'_ulocdata_close_52',
|
'_ulocdata_close_52',
|
||||||
'_uregex_matches_52',
|
'_uregex_matches_52',
|
||||||
'_uscript_getCode_52',
|
'_uscript_getCode_52',
|
||||||
'_usearch_setPattern_52',
|
'_usearch_setPattern_52',
|
||||||
'?createInstance@Transliterator@icu_52@@SAPAV12@ABVUnicodeString@2@W4UTransDirection@@AAW4UErrorCode@@@Z',
|
'?createInstance@Transliterator@icu_52@@SAPAV12@ABVUnicodeString@2@W4UTransDirection@@AAW4UErrorCode@@@Z',
|
||||||
'?nameToUnicodeUTF8@IDNA@icu_52@@UBEXABVStringPiece@2@AAVByteSink@2@AAVIDNAInfo@2@AAW4UErrorCode@@@Z',
|
'?nameToUnicodeUTF8@IDNA@icu_52@@UBEXABVStringPiece@2@AAVByteSink@2@AAVIDNAInfo@2@AAW4UErrorCode@@@Z',
|
||||||
'?kLineOffsetNotFound@Function@v8@@2HB',
|
'?kLineOffsetNotFound@Function@v8@@2HB',
|
||||||
], # '/INCLUDE'
|
],
|
||||||
},
|
}, {
|
||||||
},
|
'reference_symbols': [
|
||||||
|
'u_errorName_52',
|
||||||
|
'ubidi_setPara_52',
|
||||||
|
'ucsdet_getName_52',
|
||||||
|
'uidna_openUTS46_52',
|
||||||
|
'ulocdata_close_52',
|
||||||
|
'uregex_matches_52',
|
||||||
|
'uscript_getCode_52',
|
||||||
|
'usearch_setPattern_52',
|
||||||
|
'?createInstance@Transliterator@icu_52@@SAPEAV12@AEBVUnicodeString@2@W4UTransDirection@@AEAW4UErrorCode@@@Z'
|
||||||
|
],
|
||||||
|
}],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
'msvs_settings': {
|
||||||
|
'VCLinkerTool': {
|
||||||
|
# There is nothing like "whole-archive" on Windows, so we
|
||||||
|
# have to manually force some objets files to be included
|
||||||
|
# by referencing them.
|
||||||
|
'ForceSymbolReferences': [ '<@(reference_symbols)' ], # '/INCLUDE'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}],
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
['OS=="linux" and libchromiumcontent_component==0', {
|
['OS=="linux" and libchromiumcontent_component==0', {
|
||||||
# Prevent the linker from stripping symbols.
|
# Prevent the linker from stripping symbols.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue