summaryrefslogtreecommitdiffstats
path: root/build/android/gyp/create_placeholder_files.py
blob: 103e1df7f2dd8d5aee7c5632702e5d6dffdcbd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Create placeholder files.
"""

import optparse
import os
import sys

from util import build_utils

def main():
  parser = optparse.OptionParser()
  parser.add_option(
      '--dest-lib-dir',
      help='Destination directory to have placeholder files.')
  parser.add_option(
      '--stamp',
      help='Path to touch on success')

  options, args = parser.parse_args()

  for name in args:
    target_path = os.path.join(options.dest_lib_dir, name)
    build_utils.Touch(target_path)

  if options.stamp:
    build_utils.Touch(options.stamp)

if __name__ == '__main__':
  sys.exit(main())