-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msvs: Support ARM64 configuration platform
* This change is intent to support top-level ARM64 configuration, so a project can be built as ARM64 project. * Unit test also included
- Loading branch information
Showing
6 changed files
with
75 additions
and
6 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,6 @@ | ||
#include <stdio.h> | ||
|
||
int main(void) { | ||
printf("Hello ARM64\n"); | ||
return 0; | ||
} |
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,22 @@ | ||
# Copyright (c) 2009 Google Inc. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
{ | ||
'target_defaults': { | ||
'configurations': { | ||
'Debug': { | ||
'msvs_configuration_platform': 'ARM64', | ||
}, | ||
}, | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'configurationsARM64', | ||
'type': 'executable', | ||
'sources': [ | ||
'configurations.c', | ||
], | ||
}, | ||
], | ||
} |
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,26 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright (c) 2012 Google Inc. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
""" | ||
Verifies build of an executable for ARM64 configurations. | ||
""" | ||
|
||
import TestGyp | ||
|
||
import sys | ||
|
||
if sys.platform == 'win32': | ||
formats = ['msvs', 'ninja'] | ||
test = TestGyp.TestGyp(formats=formats) | ||
|
||
test.run_gyp('configurations.gyp') | ||
test.set_configuration('Debug|ARM64') | ||
test.build('configurations.gyp', test.ALL) | ||
|
||
output = test.run_dumpbin('/headers', test.built_file_path('configurations%s.exe' % 'ARM64')) | ||
if 'AA64 machine (ARM64)' not in output: | ||
test.fail_test() | ||
test.pass_test() |