freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][msbuild-test] Msbuild test


From: Anurag Thakur (@AnuthaDev)
Subject: [Git][freetype/freetype][msbuild-test] Msbuild test
Date: Sat, 16 Dec 2023 18:51:57 +0000

Anurag Thakur pushed to branch msbuild-test at FreeType / FreeType

Commits:

  • e6b4a64d
    by Anurag Thakur (अनुराग ठाकुर) at 2023-12-17T00:21:30+05:30
    Msbuild test
    

1 changed file:

Changes:

  • .gitlab-ci.yml
    ... ... @@ -19,46 +19,46 @@ variables:
    19 19
         - '2022'
    
    20 20
         - 'gstreamer-windows'
    
    21 21
     
    
    22
    -.build linux common:
    
    23
    -  # See
    
    24
    -  # https://gitlab.freedesktop.org/freetype/docker-images/container_registry/20896
    
    25
    -  image: 'registry.freedesktop.org/freetype/docker-images/debian:latest'
    
    26
    -  stage: 'build'
    
    27
    -
    
    28
    -.build macos common:
    
    29
    -  stage: 'build'
    
    30
    -  tags:
    
    31
    -    - 'gst-macos-11.1'
    
    22
    +# .build linux common:
    
    23
    +#   # See
    
    24
    +#   # https://gitlab.freedesktop.org/freetype/docker-images/container_registry/20896
    
    25
    +#   image: 'registry.freedesktop.org/freetype/docker-images/debian:latest'
    
    26
    +#   stage: 'build'
    
    27
    +#
    
    28
    +# .build macos common:
    
    29
    +#   stage: 'build'
    
    30
    +#   tags:
    
    31
    +#     - 'gst-macos-11.1'
    
    32 32
     
    
    33 33
     .build windows meson:
    
    34 34
       extends: '.build windows common'
    
    35 35
       variables:
    
    36 36
         # Make sure any failure in PowerShell scripts is fatal.
    
    37
    -    ErrorActionPreference: 'Stop'
    
    38
    -    WarningPreference: 'Stop'
    
    37
    +    # ErrorActionPreference: 'Stop'
    
    38
    +    # WarningPreference: 'Stop'
    
    39 39
         # Uncomment the following key if you need to pass custom args, as well
    
    40 40
         # with the `$env:MESON_ARGS` line in the `script:` blocks.
    
    41 41
         # MESON_ARGS: >-
    
    42 42
         #   -Dfoo=enabled
    
    43 43
         #   -Dbar=disabled
    
    44
    -  before_script:
    
    45
    -    # Update RootCAs in order to access to some sites.
    
    46
    -    - certutil -generateSSTFromWU "C:\roots.sst"
    
    47
    -    - Import-Certificate -CertStoreLocation "Cert:\LocalMachine\Root" "C:\roots.sst"
    
    48
    -    # Make sure meson is up to date so we don't need to rebuild the image
    
    49
    -    # with each release.
    
    50
    -    - pip3 install -U 'meson==0.59.*'
    
    51
    -    - pip3 install --upgrade certifi
    
    52
    -    - pip3 install -U ninja
    
    53
    -
    
    54
    -    # Generate a UWP cross-file in case it's used
    
    55
    -    - $PSDefaultParameterValues['Out-File:Encoding'] = 'ASCII'
    
    56
    -    - echo "[binaries]" > uwp-crossfile.meson
    
    57
    -    - echo "c = 'cl'" >> uwp-crossfile.meson
    
    58
    -    - echo "strip = ['true']" >> uwp-crossfile.meson
    
    59
    -    - echo "[built-in options]" >> uwp-crossfile.meson
    
    60
    -    - echo "c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP', '-DUNICODE', '-D_WIN32_WINNT=0x0A00', '-we4013']" >> uwp-crossfile.meson
    
    61
    -    - echo "c_winlibs = ['windowsapp.lib']" >> uwp-crossfile.meson
    
    44
    +  # before_script:
    
    45
    +  #   # Update RootCAs in order to access to some sites.
    
    46
    +  #   - certutil -generateSSTFromWU "C:\roots.sst"
    
    47
    +  #   - Import-Certificate -CertStoreLocation "Cert:\LocalMachine\Root" "C:\roots.sst"
    
    48
    +  #   # Make sure meson is up to date so we don't need to rebuild the image
    
    49
    +  #   # with each release.
    
    50
    +  #   - pip3 install -U 'meson==0.59.*'
    
    51
    +  #   - pip3 install --upgrade certifi
    
    52
    +  #   - pip3 install -U ninja
    
    53
    +  #
    
    54
    +  #   # Generate a UWP cross-file in case it's used
    
    55
    +  #   - $PSDefaultParameterValues['Out-File:Encoding'] = 'ASCII'
    
    56
    +  #   - echo "[binaries]" > uwp-crossfile.meson
    
    57
    +  #   - echo "c = 'cl'" >> uwp-crossfile.meson
    
    58
    +  #   - echo "strip = ['true']" >> uwp-crossfile.meson
    
    59
    +  #   - echo "[built-in options]" >> uwp-crossfile.meson
    
    60
    +  #   - echo "c_args = ['-DWINAPI_FAMILY=WINAPI_FAMILY_APP', '-DUNICODE', '-D_WIN32_WINNT=0x0A00', '-we4013']" >> uwp-crossfile.meson
    
    61
    +    # - echo "c_winlibs = ['windowsapp.lib']" >> uwp-crossfile.meson
    
    62 62
       script:
    
    63 63
         # For some reason, options are separated by newlines instead of spaces,
    
    64 64
         # so we have to replace them first.
    
    ... ... @@ -69,10 +69,16 @@ variables:
    69 69
         # script.  Environment variables substitutions is done by PowerShell
    
    70 70
         # before calling `cmd.exe`, that's why we use `$env:FOO` instead of
    
    71 71
         # `%FOO%`.
    
    72
    -    - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH $env:VS_UWP &&
    
    73
    -        meson setup build $env:MESON_ARGS_WINDOWS $env:MESON_ARGS_UWP &&
    
    74
    -        meson compile --verbose -C build
    
    75
    -        $env:MESON_WINDOWS_TESTS"
    
    72
    +    # - cmd.exe /c "%VS120COMNTOOLS%\vsvars32.bat"
    
    73
    +    # - 'call "%VS120COMNTOOLS%\vsvars32.bat"'
    
    74
    +    # - call $env:VS120COMNTOOLS
    
    75
    +    - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
    
    76
    +      MSBUILD.exe -t:Rebuild
    
    77
    +               -p:Configuration=Debug
    
    78
    +               -p:Platform=x64
    
    79
    +               -p:UserDefines=FT_DEBUG_LOGGING
    
    80
    +               MSBuild.sln"
    
    81
    +
    
    76 82
     
    
    77 83
     
    
    78 84
     # Format of job names:
    
    ... ... @@ -87,144 +93,144 @@ windows meson vs2019 amd64:
    87 93
         ARCH: 'amd64'
    
    88 94
         MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
    
    89 95
     
    
    90
    -windows meson vs2019 x86:
    
    91
    -  extends: '.build windows meson'
    
    92
    -  variables:
    
    93
    -    ARCH: 'x86'
    
    94
    -    MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
    
    95
    -
    
    96
    -windows meson vs2019 amd64 uwp:
    
    97
    -  extends: '.build windows meson'
    
    98
    -  variables:
    
    99
    -    ARCH: 'amd64'
    
    100
    -    VS_UWP: '-app_platform=UWP'
    
    101
    -    MESON_ARGS_UWP: '--cross-file uwp-crossfile.meson -Dc_winlibs="windowsapp.lib"'
    
    102
    -
    
    103
    -# Linux Jobs.
    
    96
    +# windows meson vs2019 x86:
    
    97
    +#   extends: '.build windows meson'
    
    98
    +#   variables:
    
    99
    +#     ARCH: 'x86'
    
    100
    +#     MESON_WINDOWS_TESTS: '&& meson test -C build && meson test -C build --benchmark'
    
    104 101
     #
    
    105
    -# Jobs with "libs" in the name force-enable libraries.
    
    106
    -# They are disabled for the remaining jobs.
    
    107
    -
    
    108
    -linux autotools:
    
    109
    -  extends: '.build linux common'
    
    110
    -  script: |
    
    111
    -    ./autogen.sh
    
    112
    -    ./configure --with-brotli=no \
    
    113
    -                --with-bzip2=no \
    
    114
    -                --with-harfbuzz=no \
    
    115
    -                --with-png=no \
    
    116
    -                --with-zlib=no \
    
    117
    -                CC=gcc
    
    118
    -
    
    119
    -    make -j$(nproc) && make install
    
    120
    -
    
    121
    -linux autotools libs:
    
    122
    -  extends: '.build linux common'
    
    123
    -  script: |
    
    124
    -    ./autogen.sh
    
    125
    -    ./configure --with-brotli=yes \
    
    126
    -                --with-bzip2=yes \
    
    127
    -                --with-harfbuzz=yes \
    
    128
    -                --with-png=yes \
    
    129
    -                --with-zlib=yes \
    
    130
    -                CC=gcc
    
    131
    -
    
    132
    -    make -j$(nproc) && make install
    
    133
    -
    
    134
    -linux autotools libs clang:
    
    135
    -  extends: '.build linux common'
    
    136
    -  script: |
    
    137
    -    ./autogen.sh
    
    138
    -    ./configure --with-brotli=yes \
    
    139
    -                --with-bzip2=yes \
    
    140
    -                --with-harfbuzz=yes \
    
    141
    -                --with-png=yes \
    
    142
    -                --with-zlib=yes \
    
    143
    -                CC=clang
    
    144
    -
    
    145
    -    make -j$(nproc) && make install
    
    146
    -
    
    147
    -linux meson:
    
    148
    -  extends: '.build linux common'
    
    149
    -  script: |
    
    150
    -    meson setup build ${MESON_ARGS} \
    
    151
    -                      -Dbrotli=disabled \
    
    152
    -                      -Dbzip2=disabled \
    
    153
    -                      -Dharfbuzz=disabled \
    
    154
    -                      -Dpng=disabled \
    
    155
    -                      -Dzlib=disabled
    
    156
    -
    
    157
    -    meson compile --verbose -C build
    
    158
    -    meson install -C build
    
    159
    -
    
    160
    -linux meson libs:
    
    161
    -  extends: '.build linux common'
    
    162
    -  script: |
    
    163
    -    meson setup build ${MESON_ARGS} \
    
    164
    -                      -Dbrotli=enabled \
    
    165
    -                      -Dbzip2=enabled \
    
    166
    -                      -Dharfbuzz=disabled \
    
    167
    -                      -Dpng=disabled \
    
    168
    -                      -Dzlib=disabled
    
    169
    -
    
    170
    -    meson compile --verbose -C build
    
    171
    -    meson install -C build
    
    172
    -
    
    173
    -linux cmake:
    
    174
    -  extends: '.build linux common'
    
    175
    -  script: |
    
    176
    -    cmake -B build -D FT_DISABLE_BROTLI=TRUE \
    
    177
    -                   -D FT_DISABLE_BZIP2=TRUE \
    
    178
    -                   -D FT_DISABLE_HARFBUZZ=TRUE \
    
    179
    -                   -D FT_DISABLE_PNG=TRUE \
    
    180
    -                   -D FT_DISABLE_ZLIB=TRUE
    
    181
    -
    
    182
    -    cmake --build build --target install
    
    183
    -
    
    184
    -linux cmake libs:
    
    185
    -  extends: '.build linux common'
    
    186
    -  script: |
    
    187
    -    cmake -B build -D FT_REQUIRE_BROTLI=TRUE \
    
    188
    -                   -D FT_REQUIRE_BZIP2=TRUE \
    
    189
    -                   -D FT_REQUIRE_HARFBUZZ=TRUE \
    
    190
    -                   -D FT_REQUIRE_PNG=TRUE \
    
    191
    -                   -D FT_REQUIRE_ZLIB=TRUE
    
    192
    -
    
    193
    -    cmake --build build --target install
    
    194
    -
    
    195
    -
    
    196
    -# MacOS jobs.
    
    197
    -
    
    198
    -macos autotools:
    
    199
    -  extends: '.build macos common'
    
    200
    -  before_script:
    
    201
    -    - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
    
    202
    -  script:
    
    203
    -    - brew install autoconf automake libtool
    
    204
    -    - ./autogen.sh
    
    205
    -    - ./configure
    
    206
    -    - 'make -j$(sysctl -n hw.logicalcpu)'
    
    207
    -    - make install
    
    208
    -
    
    209
    -macos autotools clang:
    
    210
    -  extends: '.build macos common'
    
    211
    -  before_script:
    
    212
    -    - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
    
    213
    -  script:
    
    214
    -    - brew install autoconf automake libtool
    
    215
    -    - ./autogen.sh
    
    216
    -    - './configure CC=clang'
    
    217
    -    - 'make -j$(sysctl -n hw.logicalcpu)'
    
    218
    -    - make install
    
    219
    -
    
    220
    -macos meson:
    
    221
    -  extends: '.build macos common'
    
    222
    -  script:
    
    223
    -    - pip3 install --upgrade pip
    
    224
    -    - pip3 install -U meson
    
    225
    -    - pip3 install --upgrade certifi
    
    226
    -    - pip3 install -U ninja
    
    227
    -
    
    228
    -    - meson setup build ${MESON_ARGS}
    
    229
    -    - meson compile --verbose -C build
    
    230
    -    - sudo meson install -C build
    102
    +# windows meson vs2019 amd64 uwp:
    
    103
    +#   extends: '.build windows meson'
    
    104
    +#   variables:
    
    105
    +#     ARCH: 'amd64'
    
    106
    +#     VS_UWP: '-app_platform=UWP'
    
    107
    +#     MESON_ARGS_UWP: '--cross-file uwp-crossfile.meson -Dc_winlibs="windowsapp.lib"'
    
    108
    +#
    
    109
    +# # Linux Jobs.
    
    110
    +# #
    
    111
    +# # Jobs with "libs" in the name force-enable libraries.
    
    112
    +# # They are disabled for the remaining jobs.
    
    113
    +#
    
    114
    +# linux autotools:
    
    115
    +#   extends: '.build linux common'
    
    116
    +#   script: |
    
    117
    +#     ./autogen.sh
    
    118
    +#     ./configure --with-brotli=no \
    
    119
    +#                 --with-bzip2=no \
    
    120
    +#                 --with-harfbuzz=no \
    
    121
    +#                 --with-png=no \
    
    122
    +#                 --with-zlib=no \
    
    123
    +#                 CC=gcc
    
    124
    +#
    
    125
    +#     make -j$(nproc) && make install
    
    126
    +#
    
    127
    +# linux autotools libs:
    
    128
    +#   extends: '.build linux common'
    
    129
    +#   script: |
    
    130
    +#     ./autogen.sh
    
    131
    +#     ./configure --with-brotli=yes \
    
    132
    +#                 --with-bzip2=yes \
    
    133
    +#                 --with-harfbuzz=yes \
    
    134
    +#                 --with-png=yes \
    
    135
    +#                 --with-zlib=yes \
    
    136
    +#                 CC=gcc
    
    137
    +#
    
    138
    +#     make -j$(nproc) && make install
    
    139
    +#
    
    140
    +# linux autotools libs clang:
    
    141
    +#   extends: '.build linux common'
    
    142
    +#   script: |
    
    143
    +#     ./autogen.sh
    
    144
    +#     ./configure --with-brotli=yes \
    
    145
    +#                 --with-bzip2=yes \
    
    146
    +#                 --with-harfbuzz=yes \
    
    147
    +#                 --with-png=yes \
    
    148
    +#                 --with-zlib=yes \
    
    149
    +#                 CC=clang
    
    150
    +#
    
    151
    +#     make -j$(nproc) && make install
    
    152
    +#
    
    153
    +# linux meson:
    
    154
    +#   extends: '.build linux common'
    
    155
    +#   script: |
    
    156
    +#     meson setup build ${MESON_ARGS} \
    
    157
    +#                       -Dbrotli=disabled \
    
    158
    +#                       -Dbzip2=disabled \
    
    159
    +#                       -Dharfbuzz=disabled \
    
    160
    +#                       -Dpng=disabled \
    
    161
    +#                       -Dzlib=disabled
    
    162
    +#
    
    163
    +#     meson compile --verbose -C build
    
    164
    +#     meson install -C build
    
    165
    +#
    
    166
    +# linux meson libs:
    
    167
    +#   extends: '.build linux common'
    
    168
    +#   script: |
    
    169
    +#     meson setup build ${MESON_ARGS} \
    
    170
    +#                       -Dbrotli=enabled \
    
    171
    +#                       -Dbzip2=enabled \
    
    172
    +#                       -Dharfbuzz=disabled \
    
    173
    +#                       -Dpng=disabled \
    
    174
    +#                       -Dzlib=disabled
    
    175
    +#
    
    176
    +#     meson compile --verbose -C build
    
    177
    +#     meson install -C build
    
    178
    +#
    
    179
    +# linux cmake:
    
    180
    +#   extends: '.build linux common'
    
    181
    +#   script: |
    
    182
    +#     cmake -B build -D FT_DISABLE_BROTLI=TRUE \
    
    183
    +#                    -D FT_DISABLE_BZIP2=TRUE \
    
    184
    +#                    -D FT_DISABLE_HARFBUZZ=TRUE \
    
    185
    +#                    -D FT_DISABLE_PNG=TRUE \
    
    186
    +#                    -D FT_DISABLE_ZLIB=TRUE
    
    187
    +#
    
    188
    +#     cmake --build build --target install
    
    189
    +#
    
    190
    +# linux cmake libs:
    
    191
    +#   extends: '.build linux common'
    
    192
    +#   script: |
    
    193
    +#     cmake -B build -D FT_REQUIRE_BROTLI=TRUE \
    
    194
    +#                    -D FT_REQUIRE_BZIP2=TRUE \
    
    195
    +#                    -D FT_REQUIRE_HARFBUZZ=TRUE \
    
    196
    +#                    -D FT_REQUIRE_PNG=TRUE \
    
    197
    +#                    -D FT_REQUIRE_ZLIB=TRUE
    
    198
    +#
    
    199
    +#     cmake --build build --target install
    
    200
    +#
    
    201
    +#
    
    202
    +# # MacOS jobs.
    
    203
    +#
    
    204
    +# macos autotools:
    
    205
    +#   extends: '.build macos common'
    
    206
    +#   before_script:
    
    207
    +#     - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
    
    208
    +#   script:
    
    209
    +#     - brew install autoconf automake libtool
    
    210
    +#     - ./autogen.sh
    
    211
    +#     - ./configure
    
    212
    +#     - 'make -j$(sysctl -n hw.logicalcpu)'
    
    213
    +#     - make install
    
    214
    +#
    
    215
    +# macos autotools clang:
    
    216
    +#   extends: '.build macos common'
    
    217
    +#   before_script:
    
    218
    +#     - '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"'
    
    219
    +#   script:
    
    220
    +#     - brew install autoconf automake libtool
    
    221
    +#     - ./autogen.sh
    
    222
    +#     - './configure CC=clang'
    
    223
    +#     - 'make -j$(sysctl -n hw.logicalcpu)'
    
    224
    +#     - make install
    
    225
    +#
    
    226
    +# macos meson:
    
    227
    +#   extends: '.build macos common'
    
    228
    +#   script:
    
    229
    +#     - pip3 install --upgrade pip
    
    230
    +#     - pip3 install -U meson
    
    231
    +#     - pip3 install --upgrade certifi
    
    232
    +#     - pip3 install -U ninja
    
    233
    +#
    
    234
    +#     - meson setup build ${MESON_ARGS}
    
    235
    +#     - meson compile --verbose -C build
    
    236
    +#     - sudo meson install -C build


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]