Browse Source
* [WIP] deploy release and daily build pdbs to s3 * First pass at windows symbol generation for #2680 * Kill the conflicted compiler flag warning * Tweaks to windows compiler flags for release builds, more qt-ish release symbols and ltcg * Deploy tagged release symbols and CI builds to different S3 folders * Support LTCG on iOS * Just turn off ltcg for iOS if it is going to be such a painQGC4.4
5 changed files with 101 additions and 10 deletions
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
import fileinput |
||||
import sys |
||||
import os |
||||
import glob |
||||
|
||||
def get_actual_filename(name): |
||||
dirs = name.split('\\') |
||||
# disk letter |
||||
test_name = [dirs[0].upper()] |
||||
for d in dirs[1:]: |
||||
test_name += ["%s[%s]" % (d[:-1], d[-1])] |
||||
res = glob.glob('\\'.join(test_name)) |
||||
if not res: |
||||
#File not found |
||||
return None |
||||
return res[0] |
||||
|
||||
filelist = [get_actual_filename(x.rstrip()) for x in fileinput.input(['-'])] |
||||
prefix_len = len(os.path.commonprefix(filelist)) |
||||
|
||||
print("""SRCSRV: ini ------------------------------------------------ |
||||
VERSION=2 |
||||
SRCSRV: variables ------------------------------------------ |
||||
SRCSRVVERCTRL=https |
||||
SRCSRVTRG=https://raw.github.com/mavlink/qgroundcontrol/%s/%%var2%% |
||||
SRCSRV: source files ---------------------------------------""" % os.environ['APPVEYOR_REPO_COMMIT']) |
||||
for line in filelist: |
||||
if line is not None: |
||||
print('%s*%s' % (line, line[prefix_len:].replace('\\','/'))) |
||||
|
||||
print("SRCSRV: end ------------------------------------------------") |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
Add-Type -TypeDefinition @' |
||||
using System; |
||||
using System.Runtime.InteropServices; |
||||
|
||||
public class NativeMethods |
||||
{ |
||||
[DllImport("kernel32.dll", EntryPoint="MoveFileW", SetLastError=true, |
||||
CharSet=CharSet.Unicode, ExactSpelling=true, |
||||
CallingConvention=CallingConvention.StdCall)] |
||||
public static extern bool MoveFile(string lpExistingFileName, string lpNewFileName); |
||||
} |
||||
'@ |
||||
|
||||
Get-ChildItem ".\symbols" -recurse | ForEach-Object {[NativeMethods]::MoveFile($_.FullName,[io.path]::combine((Split-Path $_.FullName -Parent),$_.Name.ToLower()))} |
Loading…
Reference in new issue