diff --git a/tools/make_distrib.py b/tools/make_distrib.py index b45d82087..267315fb5 100644 --- a/tools/make_distrib.py +++ b/tools/make_distrib.py @@ -717,7 +717,10 @@ elif platform == 'linux': if mode == 'standard': # transfer Debug files build_dir = build_dir_debug - libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') + if use_gn: + libcef_path = os.path.join(build_dir, 'libcef.so') + else: + libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') if not options.allowpartial or path_exists(libcef_path): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Debug') @@ -731,15 +734,21 @@ elif platform == 'linux': # transfer Release files build_dir = build_dir_release - libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') + if use_gn: + libcef_path = os.path.join(build_dir, 'libcef.so') + else: + libcef_path = os.path.join(build_dir, lib_dir_name, 'libcef.so') if not options.allowpartial or path_exists(libcef_path): valid_build_dir = build_dir dst_dir = os.path.join(output_dir, 'Release') make_dir(dst_dir, options.quiet) if mode == 'client': - lib_dst_dir = os.path.join(dst_dir, lib_dir_name) - make_dir(lib_dst_dir, options.quiet) + if use_gn: + lib_dst_dir = dst_dir + else: + lib_dst_dir = os.path.join(dst_dir, lib_dir_name) + make_dir(lib_dst_dir, options.quiet) copy_file(libcef_path, lib_dst_dir, options.quiet) copy_file(os.path.join(build_dir, 'cefsimple'), dst_dir, options.quiet) else: