I resolved my problem. so this is my .spec file. I put my example_doxigen.c
and example_doxigen.h and logo.ico file in my directory where python file stored.
# -*- mode: python -*-
a = Analysis([os.path.join(HOMEPATH,'doxygen_skeleton.py')],
pathex=['E:\\pyinstaller-2.0\\pyinstaller-2.0', 'E:\\pyinstaller-2.0\\pyinstaller-2.0\\utils'],
hiddenimports=[],
hookspath=None)
a.datas += [ ('logo.ico', 'E:\\pyinstaller-2.0\\pyinstaller-2.0\\logo.ico', 'DATA')]
a.datas += [ ('example_doxigen.c', 'E:\\pyinstaller-2.0\\pyinstaller-2.0\\example_doxigen.c', 'DATA')]
a.datas += [ ('example_doxigen.h', 'E:\\pyinstaller-2.0\\pyinstaller-2.0\\example_doxigen.h', 'DATA')]
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name=os.path.join('dist', 'doxygen_skeleton.exe'),
debug=False,
strip=None,
upx=True,
console=False , icon='E:\\pyinstaller-2.0\\pyinstaller-2.0\\logo.ico')