Home | History | Annotate | Download | only in external
      1 # -*- coding: utf-8 -*-
      2 
      3 #-------------------------------------------------------------------------
      4 # Khronos OpenGL CTS
      5 # ------------------
      6 #
      7 # Copyright (c) 2016 The Khronos Group Inc.
      8 #
      9 # Licensed under the Apache License, Version 2.0 (the "License");
     10 # you may not use this file except in compliance with the License.
     11 # You may obtain a copy of the License at
     12 #
     13 #      http://www.apache.org/licenses/LICENSE-2.0
     14 #
     15 # Unless required by applicable law or agreed to in writing, software
     16 # distributed under the License is distributed on an "AS IS" BASIS,
     17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     18 # See the License for the specific language governing permissions and
     19 # limitations under the License.
     20 #
     21 #-------------------------------------------------------------------------
     22 
     23 import os
     24 import sys
     25 import shutil
     26 import argparse
     27 import subprocess
     28 
     29 from fetch_sources import *
     30 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "scripts"))
     31 
     32 from build.common import *
     33 
     34 EXTERNAL_DIR	= os.path.realpath(os.path.normpath(os.path.dirname(__file__)))
     35 SHA1 = "5995452bfa07e3eb6d7238eb68279f55056485d5"
     36 
     37 PACKAGES = [
     38 	GitRepo(
     39 		"https://gitlab.khronos.org/opengl/kc-cts.git",
     40 		"git (at] gitlab.khronos.org:opengl/kc-cts.git",
     41 		SHA1,
     42 		"kc-cts"),
     43 ]
     44 
     45 if __name__ == "__main__":
     46 	args = parseArgs()
     47 
     48 	for pkg in PACKAGES:
     49 		if args.clean:
     50 			pkg.clean()
     51 		else:
     52 			pkg.update(args.protocol)
     53